On Friday 19 March 2004 07:49, Robert Spier wrote: > > However please send patches if you find things missing. It's performing > > extremely well for me. > > And for me too. > > I'm testing it (in production). It's definitely performing faster and > lighter than pperl. > > Now if only I could convince someone else (*cough*) that the qmail > tcpserver architecture, high performance, and perl don't play along. > There's a lot to be said for minimizing startup cost.
If it's any help, I wrote a perl module quite a while back that profiles the startup of a perl script by showing you how long it took to load other modules (and what they in turn loaded) - I was surprised to find out that loading certain modules (like FileHandle) takes longer than loading perl itself (IO::File is the biggest single sinner) ! If you normally run your script with "perl -w script.pl", instead use "perl -w -mProfileStartup script.pl" to get timing figures (lots of options available for extra stuff too). It works by hacking in to the internals of Perl, and in particular it includes code that intercepts calls to arbitrary subroutines in arbitrary modules, so it's sensitive to Perl versions and doesn't seem to be working with 5.8 but it used to work fine with 5.5 and 5.6 - I'll see what I can do about 5.8. Anyway, it's called ProfileStartup.pm and although it never made it on to CPAN you can get it from www.schmerg.com Cheers -- Tim
