Re: Making the program run faster

2004-09-18 Thread Gunnar Hjalmarsson
Chris Devers wrote: Gunnar Hjalmarsson wrote: Btw, wonder how the autoloading affects that. I mean, when running under mod_perl, you normally *want* everything to be loaded at the start of the server, right? Well, everything you're likely to use, yeah. There doesn't seem to be much point in loading

Re: Making the program run faster

2004-09-18 Thread Chris Devers
On Sun, 19 Sep 2004, Gunnar Hjalmarsson wrote: > Btw, wonder how the autoloading affects that. I mean, when running > under mod_perl, you normally *want* everything to be loaded at the > start of the server, right? Well, everything you're likely to use, yeah. There doesn't seem to be much poin

Re: Making the program run faster

2004-09-18 Thread Gunnar Hjalmarsson
Chris Devers wrote: Gunnar Hjalmarsson wrote: Chris Devers wrote: if you need a speed boost then the best strategies are to [a] use a smaller subset of CGI.pm, Does that really make a lot of difference? That was my understanding, but I admit I haven't benchmarked it. If only importing part of CGI.p

Re: Making the program run faster

2004-09-18 Thread Chris Devers
On Sat, 18 Sep 2004, Gunnar Hjalmarsson wrote: > Chris Devers wrote: > > if you need a speed boost then the best strategies are to [a] use a > > smaller subset of CGI.pm, > > Does that really make a lot of difference? That was my understanding, but I admit I haven't benchmarked it. If only imp

Re: Making the program run faster

2004-09-18 Thread Gunnar Hjalmarsson
Octavian Rasnita wrote: I have made a program and I have made some benchmarks in order to see how much time consumes each part of it, and I was pretty surprised when I've seen that the CGI module takes very much comparing with the other parts of the program. CGI.pm is a huge module, and if you are

Re: Making the program run faster

2004-09-18 Thread Gunnar Hjalmarsson
Chris Devers wrote: if you need a speed boost then the best strategies are to [a] use a smaller subset of CGI.pm, Does that really make a lot of difference? In this benchmark: http://groups.google.se/groups?selm=bp9hb9%241kv1vv%241%40ID-184292.news.uni-berlin.de I used the smallest possible subset,

Re: Making the program run faster

2004-09-18 Thread Chris Devers
On Sat, 18 Sep 2004, Octavian Rasnita wrote: > Can you recommend me some tricks to make it work a little faster? In general, it does make sense to use CGI.pm rather than hand coding things, but if you need a speed boost then the best strategies are to [a] use a smaller subset of CGI.pm, [b] sub

Making the program run faster

2004-09-18 Thread Octavian Rasnita
Hello all, I have made a program and I have made some benchmarks in order to see how much time consumes each part of it, and I was pretty surprised when I've seen that the CGI module takes very much comparing with the other parts of the program. Well, I don't need very many methods from the CGI li