vlakkies has asked for the wisdom of the Perl Monks concerning the following question:
helps the garbage collector work faster by about a factor of 2 or three. Switching the order of $i and $j seems to make things slower. It seems that there ought to be a better way. What can I do to help out the garbage collector do this faster?foreach $i (0..whatever) { $data[$i] = (); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Helping the garbage collector
by maverick (Curate) on Mar 14, 2002 at 23:24 UTC | |
|
Re: Helping the garbage collector
by perrin (Chancellor) on Mar 14, 2002 at 23:28 UTC | |
|
Re: Helping the garbage collector
by shotgunefx (Parson) on Mar 14, 2002 at 23:23 UTC | |
|
Re: Helping the garbage collector
by vlakkies (Initiate) on Mar 15, 2002 at 01:30 UTC | |
|
Re: Helping the garbage collector
by Ryszard (Priest) on Mar 15, 2002 at 02:59 UTC | |
|
Re: Helping the garbage collector
by Juerd (Abbot) on Mar 15, 2002 at 06:31 UTC |