in reply to Is (DOS-)Perl a Memory Hog?
"512k should be enough for anyone!" ;-)
Perl *is* a memory hog relative to old MSDOS systems. Every program is written with tradeoffs of memory vs. speed. Perl is historicly lavish about memory, to get speed. You have more memory than most such systems, but Perl can easily use it all.
Does your script keep big hashes or arrays around? Try to pare away large global memory structures. You can work memory vs. speed, too. Favor looping constructs, line processing, small lexical data structures in tight scope.
Update: Also, MSDOS is unlikely to have very good fork emulation. A system call may be beyond the OS's capacity.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is (DOS-)Perl a Memory Hog?
by Neuroactive (Acolyte) on May 11, 2004 at 01:27 UTC | |
by Albannach (Monsignor) on May 11, 2004 at 01:41 UTC |