jaa has asked for the wisdom of the Perl Monks concerning the following question:
The new libc6 v 2.3.1 faster free makes the slow exit problems disappear. Unfortunately libc6 2.3.1 causes mysql connection failures after large memory usage, so I am stuck with 2.2.5 for the moment.
I am trying to figure out if it is possible therefore, to pre-allocate a large array of hash?
I can pre-allocate an array or a hash with
How would I pre-allocate a 250000 array of 120 field hashes?$#myarray = 250000; keys %myhash = 120;
How many buckets should be preallocated for a 120 field hash?
TIA
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I pre-allocate an array of hashes?
by Abigail-II (Bishop) on Feb 21, 2003 at 17:06 UTC | |
by jaa (Friar) on Feb 21, 2003 at 17:53 UTC | |
by steves (Curate) on Feb 21, 2003 at 18:11 UTC | |
by Abigail-II (Bishop) on Feb 21, 2003 at 22:45 UTC | |
by steves (Curate) on Feb 22, 2003 at 00:03 UTC | |
|
Re: How do I pre-allocate an array of hashes?
by Elian (Parson) on Feb 21, 2003 at 18:33 UTC | |
by jaa (Friar) on Feb 24, 2003 at 11:09 UTC | |
by Elian (Parson) on Feb 25, 2003 at 18:36 UTC | |
|
Re: How do I pre-allocate an array of hashes?
by hv (Prior) on Feb 21, 2003 at 18:49 UTC | |
by jaa (Friar) on Feb 24, 2003 at 11:14 UTC |