E
Eric J. Roode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yeah, I've read that too. I'm not sure I believe it. CGI.pm has 6700
lines in it, but fewer than 700 of them are compiled at startup. 3200
lines are POD documentation, located after the __END__ marker, so they are
ignored by the parser. The remaining 2700ish lines are subroutines which
are compiled only the first time they are invoked by user code.
So I don't see the problem, and in the real world, I haven't particularly
noticed a problem with CGI.pm's speed. (Especially if you use mod_perl or
FastCGI).
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBP0F+AWPeouIeTNHoEQLhPACfc1GMpAjk22IorKnKKB88EjMHmJkAn3e+
Up4kKPR0wjWbuWf+GaEVHnzi
=b653
-----END PGP SIGNATURE-----
Hash: SHA1
Thanks Juha for that post and you definitely made some great points
about the dangers of cuting and pasting code in a production
environment.
I'm still not 100% with you on CGI.pm. People around here seem very
loyal to it, but I have read in a lot of different places that it is
too large and slow, etc.
Yeah, I've read that too. I'm not sure I believe it. CGI.pm has 6700
lines in it, but fewer than 700 of them are compiled at startup. 3200
lines are POD documentation, located after the __END__ marker, so they are
ignored by the parser. The remaining 2700ish lines are subroutines which
are compiled only the first time they are invoked by user code.
So I don't see the problem, and in the real world, I haven't particularly
noticed a problem with CGI.pm's speed. (Especially if you use mod_perl or
FastCGI).
- --
Eric
$_ = reverse sort $ /. r , qw p ekca lre uJ reh
ts p , map $ _. $ " , qw e p h tona e and print
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBP0F+AWPeouIeTNHoEQLhPACfc1GMpAjk22IorKnKKB88EjMHmJkAn3e+
Up4kKPR0wjWbuWf+GaEVHnzi
=b653
-----END PGP SIGNATURE-----