From: Sebastian Riedel Date: Fri, 15 Apr 2005 15:28:05 +0000 (+0000) Subject: Removed Persistent Perl from cookbook X-Git-Tag: 5.7099_04~1524 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dec2a2a9b0bebb8f01400803801c102bfa092dc6;p=catagits%2FCatalyst-Runtime.git Removed Persistent Perl from cookbook --- diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 568f156..c18243d 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -283,8 +283,8 @@ And this is all you need to do, isn't Catalyst wonderful? Catalyst applications give optimum performance when run under mod_perl. However sometimes mod_perl is not an option, and running under CGI is -just too slow. There are two alternatives to mod_perl that give -reasonable performance: FastCGI and PersistentPerl. +just too slow. There's also an alternatives to mod_perl that gives +reasonable performance named FastCGI. B @@ -341,44 +341,6 @@ authentication, authorization and access check phases. For more information see the FastCGI documentation, the C module and L. - -B - -PersistentPerl (previously known as C) is a persistent -Perl interpreter. 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 contacts -the persistent Perl process, which is usually already running, to do -the work and return the results. -PersistentPerl can be used to speed up perl CGI scripts. It also -provides an Apache module so that scripts can be run without the -overhead of doing a fork/exec for each request. - -The code for PersistentPerl is simpler than for FastCGI; rather than -waiting in an accept loop the script runs to completion, however -variables are not reinitialized on subsequent runs but maintain their -values from the previous run. - - - #!/usr/bin/perperl - use strict; - use vars qw($output $initialized); - use PersistentPerl; - use MyApp; - - if (!$initialized++) { - # initialization code - set up database, etc - if ($PersistentPerl::i_am_per_perl) { - # PP-specific initialization code - } - } - - MyApp->run; - -For more information see the C documentation. - - =head1 AUTHOR Sebastian Riedel, C