CGI module or Apache
Hello, I've been using the CGI PERL module for a while now and I like using it a lot. But I was wondering if using that module with mod_perl will slow things down because of the extra module being used. If so, is there a way to use the Apache API and mod_perl to deal with form submissions, cookies and the like? You'll have to forgive me, I've been learning mod_perl off of the cheat sheet at refcards.com. Kevin Schroeder
Re: CGI module or Apache
--- Kevin Schroeder [EMAIL PROTECTED] wrote: Hello, I've been using the CGI PERL module for a while now and I like using it a lot. But I was wondering if using that module with mod_perl will slow things down because of the extra module being used. If so, is there a way to use the Apache API and mod_perl to deal with form submissions, cookies and the like? You'll have to forgive me, I've been learning mod_perl off of the cheat sheet at refcards.com. lol -- well, we don't *HAVE* to forgive you ;o] The CGI module is your best bet for most processing of those sorts, but you can still use mod_perl. Anything you add will swell the footprint of your server a bit, but if you have the resources, CGI.pm is worth a little bloat. Just use it in your handlers normally. It'll only be included once per process, . . . right? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: CGI module or Apache
For the complex programs on the site I'm building I will be using CGI.pm, but there are a few parts of the site where there is little browser-server interaction other than to send a certain page based on the query string and a cookie. Because these pages get refreshed a lot I'm thinking that using a mod_perl based alternative to CGI.pm might be a good way to coax a little extra out of the server. It would only be used once per request from the browser. Would this make a difference since it will be used multiple times on a process, but only once per request? Kevin - Original Message - From: Paul [EMAIL PROTECTED] To: Kevin Schroeder [EMAIL PROTECTED]; modperl [EMAIL PROTECTED] Sent: Monday, July 09, 2001 3:09 PM Subject: Re: CGI module or Apache --- Kevin Schroeder [EMAIL PROTECTED] wrote: Hello, I've been using the CGI PERL module for a while now and I like using it a lot. But I was wondering if using that module with mod_perl will slow things down because of the extra module being used. If so, is there a way to use the Apache API and mod_perl to deal with form submissions, cookies and the like? You'll have to forgive me, I've been learning mod_perl off of the cheat sheet at refcards.com. lol -- well, we don't *HAVE* to forgive you ;o] The CGI module is your best bet for most processing of those sorts, but you can still use mod_perl. Anything you add will swell the footprint of your server a bit, but if you have the resources, CGI.pm is worth a little bloat. Just use it in your handlers normally. It'll only be included once per process, . . . right? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: CGI module or Apache
Paul [EMAIL PROTECTED] writes: Just use it in your handlers normally. It'll only be included once per process, . . . right? Put it in startup.pl and it'll get mostly shared too! -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: CGI module or Apache
Take a look at http://perl.apache.org/guide/ and read the stuff on libapreq. - Perrin
Re: CGI module or Apache
There's Apache::Request, which is the equivalent of CGI.pm in the areas of form submissions and Apache::Cookie for cookie handling. If you're not using the HTML rendering capabilities of CGI.pm, you may look into those two. --Alex Kevin Schroeder wrote: Hello, I've been using the CGI PERL module for a while now and I like using it a lot. But I was wondering if using that module with mod_perl will slow things down because of the extra module being used. If so, is there a way to use the Apache API and mod_perl to deal with form submissions, cookies and the like? You'll have to forgive me, I've been learning mod_perl off of the cheat sheet at refcards.com. Kevin Schroeder
Re: CGI module or Apache
--- Kevin Schroeder [EMAIL PROTECTED] wrote: For the complex programs on the site I'm building I will be using CGI.pm, but there are a few parts of the site where there is little browser-server interaction other than to send a certain page based on the query string and a cookie. Because these pages get refreshed a lot I'm thinking that using a mod_perl based alternative to CGI.pm might be a good way to coax a little extra out of the server. If that's all you need, then the API will handle it without CGI.pm It would only be used once per request from the browser. Would this make a difference since it will be used multiple times on a process, but only once per request? CGI has a lot of code that saves you from having to roll your own, but if you want to squeeze those extra few cycles out of it It will make a small difference, and will be noticeable on a server that's being pounded hard enough. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: CGI module or Apache
Dave Hodgkinson [EMAIL PROTECTED] said something to this effect on 07/09/2001: Paul [EMAIL PROTECTED] writes: Just use it in your handlers normally. It'll only be included once per process, . . . right? Put it in startup.pl and it'll get mostly shared too! Is that anything like being mostly dead? (darren) -- For large values of one, one equals two, for small values of two.