> One run of my script takes about 2 seconds. This includes a lot of > database-queries, calculations and so on. about 0.3 seconds are used > just for one command: $query=new CGI;
That's really awfully slow. Are you positive it's running under mod_perl? Have you considered using Apache::Request instead of CGI.pm? > This is not a problem of my persistent variables, cause this works > with many other objects like db-handles (cant use Apache::DBI cause > this keeps to many handles opened, so I need to cache and pool on my > own), filehandles etc. Whoa, you can't use Apache::DBI but you can cache database handles yourself? That doesn't make any sense. What are you doing in your caching that's different from what Apache::DBI does? - Perrin