develooper Front page | perl.perl6.language | Postings from February 2001

Re: JWZ on s/Java/Perl/

Robin Berjon
February 9, 2001 13:21
Re: JWZ on s/Java/Perl/
Message ID:
At 16:16 09/02/2001 -0500, Ken Fox wrote:
>The general rule is the more space you "waste" the faster the collector
>is. If you have memory to spare, then don't run the garbage collector as
>often and your program will spend less total time garbage collecting.
>In other words, the collection cost per object approaches zero.
>If you "need" to go faster, then waste more memory.
>If you "need" to use less memory, then go slower and collect more

Which (to me) seems to just beg for the question: Is this something that
the oft discussed use {less,more} {memory,speed} pragma could hook into ?

-- robin b.
Heisenberg might have been here. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About