From 6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66 Mon Sep 17 00:00:00 2001 From: Aaron Crane Date: Thu, 20 Mar 2014 12:39:20 +0000 Subject: hv.h: tweak comment about HvAUX preallocation for large hashes --- hv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hv.h') diff --git a/hv.h b/hv.h index 8ff1d140f3..062871b732 100644 --- a/hv.h +++ b/hv.h @@ -238,7 +238,9 @@ C. */ #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 -- cgit v1.2.1