See this for more specifics.
6 MB is not much. If it were 6 MB per process, it would be a problem, but it is 6 MB for 30 (!) processes, so that is 0.2 MB per process. If you can't live with that, you should probably use C, not Perl. 6 MB of RAM costs approximately US$ 0.85. Compare that to time spent on fully qualifying symbols in distant packages.
Besides that, CGI.pm exports an excessive amount of symbols (158 for :standard).
And I really do not understand why people who care about efficiency this much, using micro optimizations all over the place, use functions to generate HTML (or if they don't, why they import a bunch of symbols that they never use). As if optrees don't use memory. As if calling a function has no runtime overhead.
To all CGI.pm users out there: if you care about memory usage and run speed, don't use CGI.pm. Don't waste your time by doing silly benchmarks and calculations that focus on a mere 20 kB per script per process while CGI.pm itself uses 950 kB (of which not everything stays shared), and you have runtime function call overhead for HTML tags.
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In reply to Re: Re: Re: Re^2: Pragma (more) like Java's 'import'? (importing and mod_perl)
by Juerd
in thread Pragma (more) like Java's 'import'?
by djantzen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |