Re: SOLVED: Scripts with lots of output take too long

2003-11-20 Thread Stas Bekman
Christopher P. Lindsey wrote: [...] It looks like the problem is repeated print statements. I basically had a loop that did while ($ref = $sth->fetchrow_arrayref()) { print $$ref[0], $$ref[2], etc. } Changing it to my $output; while ($ref = $sth->fetchrow_arrayref()) { $ou

SOLVED: Scripts with lots of output take too long

2003-11-19 Thread Christopher P. Lindsey
> >However, I've noticed that scripts that generate lot of output take > >substantially longer to run than their CGI counterparts. > > > >The CGI script took 1.59 seconds to run, whereas the mod_perl version > >took 3.38 seconds. It generates about 321K of output. > > Are you po

Re: Scripts with lots of output take too long

2003-11-19 Thread Perrin Harkins
On Wed, 2003-11-19 at 17:17, Christopher P. Lindsey wrote: >However, I've noticed that scripts that generate lot of output take >substantially longer to run than their CGI counterparts. > >As an example, here's the timing on a CGI script (listed first) and >the timing on a mod_perl

Scripts with lots of output take too long

2003-11-19 Thread Christopher P. Lindsey
Hi everyone, I've been happily converting over a bunch of scripts to use mod_perl since we recently solved my Apache::SSI issues. My main reason for migrating to mod_perl from standard CGI scripts is to improve performance on our Web server. Many scripts take several seconds to r