httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Tromey <tro...@creche.cygnus.com>
Subject Re: ScriptAlias-like extensions for perl etc
Date Fri, 26 Apr 1996 17:44:23 GMT
Tony> That's a negative.  exec() [in the kernel that is] looks at the
Tony> file for the magic number ``#!'' and if present parses the line
Tony> for the binary to actually exec.  This is true on all Unix
Tony> systems.

Some older systems don't recognize #!.

I don't honestly know if any such systems are actually running today.
The paranoid still go out of their way to deal with them, however.

Cf the Perl Configure script for some perspective on this issue...

In any case, I agree... changing mod_cgi to directly exec Perl
shouldn't really result in any appreciable speedup.  At least, that
result is suprising to me.

There are much bigger wins to be had when using Perl anyway: mod_perl
(as already discussed), the Perl compiler (currently pre-alpha and
probably useless today), or the dump/unexec trick (avoids parsing
costs, possibly significant).

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom

Mime
View raw message