|
|
sybperl-l Archive
Up Prev Next
From: kim at algorithmics dot com (T dot Kim Nguyen)
Subject: Re: Perl5 startup speed
Date: Mar 16 1996 11:41PM
> The bad news is that the startup time for perl5 is significantly
> longer than perl4! Since the scripts are running in response to a web
> browser,adding 3-7 seconds to a 1 second script is quite noticable.
>
> Using some 1 or 2 line scripts of basically print "$0 :" with
> or without require/use, we get these times:
>
> hello.4: 0s real 0.000s user 0.030s system
> sybperl.4: 1s real 0.070s user 0.100s system 0%
> hello.5: 0s real 0.030s user 0.030s system
> sybperl.5: 2s real 1.170s user 0.260s system 50%
> dblib.5: 1s real 0.240s user 0.090s system 0%
> ctlib.5: 7s real 1.010s user 0.150s system 14%
Could you write a Perl client that connects to a persistent Perl
server (the server would be the one using CT-Lib)? That way you start
the slow-starting server just once and have fast clients reacting to
user queries.
|