in reply to Bug when undefining a large hash
Maybe you could try a two-step approach:
to see if it improves the situation. update%hash = (); undef %hash;
May you can also try delete. It is supposed to be slower but it would be interesting to compare. I have tried your example on Windows XP and Redhat (both Perl 5.8) and it runs fine. Strangely enough it takes a bit longer under Redhat?! Unfortunately I don't have FreeBSD available.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bug when undefining a large hash
by oxone (Friar) on Aug 22, 2008 at 13:46 UTC | |
by dHarry (Abbot) on Aug 22, 2008 at 13:55 UTC |