[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RaQ2's and CGI scripts
- Subject: Re: [cobalt-users] RaQ2's and CGI scripts
- From: "Dylan Smith" <dyls@xxxxxxx>
- Date: Thu Apr 5 01:10:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
> >
> >Has anyone successfully shortened this delay? The delay gets bigger as
you
> >add 'use' statements in the script (the script itself runs fast enough).
> >
> >
>
> the version on my RaQ2, 5.004_04, also has problems with some of the newer
> modules on CPAN which need at least 5.005 to work properly. My advice-
> update to something a bit more recent (ie 5.6).
I /am/ using Perl 5.6 - the problem is with the lack of speed. All the
scripts run fine. It's just it takes 3 seconds or so to load a Perl script
whether I'm using Perl 5.6 or the one that came with the system. My old
K6-300 running Linux was lightning fast in comparison.
It's slow loading time: a daemon I wrote in Perl (which forks) that's
running on the RaQ2 forks in an instant and starts running straight away
when a connection comes in. By contrast, when a Perl script is started at
the commandline or as a CGI script it takes around 3 seconds to start.
Running top shows it's using a large amount of cpu as it does so.
Now I could 'daemonize' all my CGI scripts and have a short C program that
connects to them via sockets, but that's rather a lot of effort to go to.