Main > Programming > Libraries >

CGI::SpeedyCGI 2.22

CGI::SpeedyCGI 2.22

Sponsored Links

CGI::SpeedyCGI 2.22 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.15 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 981
Date added: 2007-02-23
Publisher: Sam Horrocks

CGI::SpeedyCGI 2.22 description

SpeedyCGI is a Perl module to speed up perl scripts by running them persistently.

SYNOPSIS

#!/usr/bin/speedy

### Your Script Here. For example:
print "Content-type: text/htmlnnHello World!n";

##
## Optionally, use the CGI::SpeedyCGI module for various things
##

# Create a SpeedyCGI object
use CGI::SpeedyCGI;
my $sp = CGI::SpeedyCGI->new;

# See if we are running under SpeedyCGI or not.
print "Running under speedy=", $sp->i_am_speedy ? yes : no, "n";

# Register a shutdown handler
$sp->add_shutdown_handler(sub { do something here });

# Register a cleanup handler
$sp->register_cleanup(sub { do something here });

# Set/get some SpeedyCGI options
$sp->setopt(timeout, 30);
print "maxruns=", $sp->getopt(maxruns), "n";

SpeedyCGI is a way to run perl scripts persistently, which can make them run much more quickly. A script can be made to to run persistently by changing the interpreter line at the top of the script from:

#!/usr/bin/perl

to

#!/usr/bin/speedy

After the script is initially run, instead of exiting, the perl interpreter is kept running. During subsequent runs, this interpreter is used to handle new executions instead of starting a new perl interpreter each time. A very fast frontend program, written in C, is executed for each request. This fast frontend then contacts the persistent Perl process, which is usually already running, to do the work and return the results.

By default each perl script runs in its own Unix process, so one perl script cant interfere with another. Command line options can also be used to deal with programs that have memory leaks or other problems that might keep them from otherwise running persistently.

SpeedyCGI can be used to speed up perl CGI scripts. It conforms to the CGI specification, and does not run perl code inside the web server. Since the perl interpreter runs outside the web server, it cant cause problems for the web server itself.

SpeedyCGI also provides an Apache module so that under the Apache web server, scripts can be run without the overhead of doing a fork/exec for each request. With this module a small amount of frontend code is run within the web server - the perl interpreters still run outside the server.

SpeedyCGI and PersistentPerl are currently both names for the same code. SpeedyCGI was the original name, but because people werent sure what it did, the name PersistentPerl was picked as an alias. At some point SpeedyCGI will be replaced by PersistentPerl, or become a sub-class of PersistentPerl to avoid always having two distributions.

CGI::SpeedyCGI 2.22 Screenshot

Advertisements

CGI::SpeedyCGI 2.22 Keywords

Bookmark CGI::SpeedyCGI 2.22

Hyperlink code:
Link for forum:

CGI::SpeedyCGI 2.22 Copyright

WareSeeker periodically updates pricing and software information of CGI::SpeedyCGI 2.22 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of CGI::SpeedyCGI 2.22 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
mod_speedycgi speeds up perl scripts by running them persistently. Free Download
SpeedySu is a modification of SpeedyCGI (a.k.a. PersistentPerl) so that it works with suEXEC-enabled Apache Web servers. Free Download
CGI::Expand is a Perl module that can convert flat hash to nested data using TT2s dot convention. Free Download
Mac::iPod::GNUpod is a Perl module to add and remove songs from your iPod; read and write databases in iTunes and GNUpod format. Free Download
CGI::Explorer is a class to manage displaying a hash tree of data, for use in CGI scripts. Free Download
Gimp::Net is a communication module for the gimp-perl server. Free Download
Web shell is a CGI-based remote UNIX shell. Free Download
Gimp::Pod is a Perl module to evaluate pod documentation embedded in scripts. Free Download