diff options
author | Aaron Crane <arc@cpan.org> | 2014-03-20 12:39:20 +0000 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2014-03-20 12:39:20 +0000 |
commit | 6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66 (patch) | |
tree | c34afb9678b3205f8a4a52255a3b73b2c2efa7fc | |
parent | 41b0043f16694f5080ec5888f9cec5e89b387f19 (diff) | |
download | perl-6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66.tar.gz |
hv.h: tweak comment about HvAUX preallocation for large hashes
-rw-r--r-- | hv.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -238,7 +238,9 @@ C<SV*>. */ #define PERL_HASH_DEFAULT_HvMAX 7 -/* HvMAX(hv)+1 is >= to this we preallocate the HvAUX() struct during hsplit() + +/* During hsplit(), if HvMAX(hv)+1 (the new bucket count) is >= this value, + * we preallocate the HvAUX() struct. * The assumption being that we are using so much space anyway we might * as well allocate the extra bytes and speed up later keys() * or each() operations. We don't do this to small hashes as we assume |