[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Needs some clarification
From:       Xinhuan Zheng <xzheng () christianbook ! com>
Date:       2015-10-17 2:25:07
Message-ID: D24728F6.9A6C9%xzheng () christianbook ! com
[Download RAW message or body]

Thank you. Is there a way I can use t/TEST the Apache Test to see the cgi-b=
in scripts vs handler the difference?

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

use foo();

what=92s the difference compared to using =93use foo;=94?

- xinhuan

From: James Smith <js5@sanger.ac.uk<mailto:js5@sanger.ac.uk>>
Date: Friday, October 16, 2015 at 10:36 AM
To: Xinhuan Zheng <xzheng@christianbook.com<mailto:xzheng@christianbook.com=
>>
Subject: Re: Needs some clarification



  1.  cgi-bin scripts vs mod_perl handler - Does cgi-bin scripts get compil=
ed 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 a=
nd code pre-loaded before the child is forked will be compiled only once (y=
ou 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 Limit=
ed, a charity registered in England with number 1021457 and a company regis=
tered in England with number 2742969, whose registered office is 215 Euston=
 Road, London, NW1 2BE.

[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, \
sans-serif;"> <div>Thank you. Is there a way I can use t/TEST the Apache Test to see \
the cgi-bin scripts vs handler the difference?</div> <div><br>
</div>
<div>Also, I noticed that in startup.pl, mod_perl documentation says do&nbsp;</div>
<div><br>
</div>
<div>use foo();</div>
<div><br>
</div>
<div>what’s the difference compared to using “use foo;”?</div>
<div><br>
</div>
<div>- xinhuan</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; \
BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; \
PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: \
medium none; PADDING-TOP: 3pt"> <span style="font-weight:bold">From: </span>James \
Smith &lt;<a href="mailto:js5@sanger.ac.uk">js5@sanger.ac.uk</a>&gt;<br> <span \
style="font-weight:bold">Date: </span>Friday, October 16, 2015 at 10:36 AM<br> <span \
style="font-weight:bold">To: </span>Xinhuan Zheng &lt;<a \
href="mailto:xzheng@christianbook.com">xzheng@christianbook.com</a>&gt;<br> <span \
style="font-weight:bold">Subject: </span>Re: Needs some clarification<br> </div>
<div><br>
</div>
<div>
<div bgcolor="#FFFFFF" text="#000000"><br>
<blockquote cite="mid:D2446D5D.9A46F%25xzheng@christianbook.com" type="cite">
<ol>
<li>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? </li></ol>
</blockquote>
Traditional cgi-bin scripts are compiled each request.<br>
<br>
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!)<br> <br>
This is where you get performance gains over traditional CGI scripts.<br>
<blockquote cite="mid:D2446D5D.9A46F%25xzheng@christianbook.com" type="cite">
<div>Thanks,</div>
<div>- xinhuan</div>
</blockquote>
<br>
<br>
-- 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. \
<br> </div>
</div>
</span>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic