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

Re: JWZ on s/Java/Perl/

Thread Previous | Thread Next
Dan Sugalski
February 9, 2001 13:50
Re: JWZ on s/Java/Perl/
Message ID:
At 10:21 PM 2/9/2001 +0100, Robin Berjon wrote:
>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
> >frequently.
>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 ?

Sure. Using it to alter the frequency of garbage collection's not an 
inappropriate thing to do.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About