in reply to Improving memory performance
Also, according to mod_perl Developer's Cookbook, you want to be careful with modules that automatically export symbols to your namespace, like POSIX:
# original code (from mod_perl book) use POSIX; setlocale(LC_ALL, 'en_US'); # now stop symbol exporting... (from mod_perl book) use POSIX(); # instead of use POSIX; POSIX::setlocal(&POSIX::LC_ALL, 'en_US');
According to the same book, doing "use POSIX" consumes about 140KB just for exporting those symbols. If you have many modules that uses such modules, eventually this will easily compound to a few megabytes...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Improving memory performance
by Sihal (Pilgrim) on Oct 04, 2002 at 09:58 UTC | |
by perrin (Chancellor) on Oct 04, 2002 at 13:33 UTC | |
by Sihal (Pilgrim) on Oct 04, 2002 at 15:38 UTC | |
by perrin (Chancellor) on Oct 04, 2002 at 17:08 UTC | |
by Sihal (Pilgrim) on Oct 06, 2002 at 16:53 UTC | |
by perrin (Chancellor) on Oct 06, 2002 at 17:01 UTC |