Re: Needs some clarification

Xinhuan Zheng <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <D24728F6.9A6C9%[email protected]>
Thank you. Is there a way I can use t/TEST the Apache Test to see the cgi-bin scripts vs handler the difference?

Also, I noticed that in startup.pl, mod_perl documentation says do

use foo();

what’s the difference compared to using “use foo;”?

- xinhuan

From: James Smith <[email protected]<mailto:[email protected]>>
Date: Friday, October 16, 2015 at 10:36 AM
To: Xinhuan Zheng <[email protected]<mailto:[email protected]>>
Subject: Re: Needs some clarification



  1.  cgi-bin scripts vs mod_perl handler - Does cgi-bin scripts get compiled per request or just once? What about those mod_perl handler scripts? Is there difference between mod_perl 1 and mod_perl 2?

Traditional cgi-bin scripts are compiled each request.

mod_perl whether Registry scripts or handlers are compiled once per child and code pre-loaded before the child is forked will be compiled only once (you can force code to be compiled in the parent application!)

This is where you get performance gains over traditional CGI scripts.
Thanks,
- xinhuan


-- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.