in reply to Re: How do I pre-allocate an array of hashes?
in thread How do I pre-allocate an array of hashes?

Thanks - other research bears this out too - will try rebuilding the debian stable Perl with -Dusemymalloc

Incidentally, as an example, one script takes 14 minutes to decrypt, translate and save thousands of records into the database, and then sits around for 22 minutes freeing the large hashes before exiting.

Jeff

  • Comment on Re: Re: How do I pre-allocate an array of hashes?

Replies are listed 'Best First'.
Re: Re: Re: How do I pre-allocate an array of hashes?
by Elian (Parson) on Feb 25, 2003 at 18:36 UTC
    Yeah, this is due to the insane number of individual allocations that perl does when building hashes. It's something I'm looking into fixing for perl 6.