Re: shrinking memory (was Re: Modperl/Apache deficiencies... Memory usage.)

2000-04-20 Thread Stas Bekman
On Tue, 18 Apr 2000, Stas Bekman wrote: What do you say? 1003520 bytes are returned to OS when @x goes out of scope. Note that this doesn't happen if you use a global @x instead. because under linux Perl defaults to system malloc: % perl -V:usemymalloc usemymalloc='n'; if

shrinking memory (was Re: Modperl/Apache deficiencies... Memory usage.)

2000-04-18 Thread Stas Bekman
Since you are talking about garbage collection (memory shrinking) you might want to re-read the thread I've started back in Aug, 99: http://forum.swarthmore.edu/epigone/modperl/zarwhegerd It includes the real show case of memory shrinking (at least on Linux). Consider this code: