Hi!
That's fine. The only additions I would suggest are:
use CGI qw/-compile :all/;
which will preload the CGI modules with all methods compiled.
Also, if you want even better performance, investigate Apache::RegistryLoader which will precompile all your .cgi scripts as well. This can be useful as it can reduce memory usage, but in terms of performance, it doesn't offer too much as the script is only compiled once per new httpd child (they should stay around for thousands of requests).
Hope that helps,
Alex
--
Gossamer Threads Inc.
That's fine. The only additions I would suggest are:
use CGI qw/-compile :all/;
which will preload the CGI modules with all methods compiled.
Also, if you want even better performance, investigate Apache::RegistryLoader which will precompile all your .cgi scripts as well. This can be useful as it can reduce memory usage, but in terms of performance, it doesn't offer too much as the script is only compiled once per new httpd child (they should stay around for thousands of requests).
Hope that helps,
Alex
--
Gossamer Threads Inc.