In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66?hp=41b0043f16694f5080ec5888f9cec5e89b387f19>
- Log ----------------------------------------------------------------- commit 6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66 Author: Aaron Crane <[email protected]> Date: Thu Mar 20 12:39:20 2014 +0000 hv.h: tweak comment about HvAUX preallocation for large hashes ----------------------------------------------------------------------- Summary of changes: hv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hv.h b/hv.h index 8ff1d14..062871b 100644 --- a/hv.h +++ b/hv.h @@ -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 -- Perl5 Master Repository
