summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2014-03-20 12:39:20 +0000
committerAaron Crane <arc@cpan.org>2014-03-20 12:39:20 +0000
commit6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66 (patch)
treec34afb9678b3205f8a4a52255a3b73b2c2efa7fc
parent41b0043f16694f5080ec5888f9cec5e89b387f19 (diff)
downloadperl-6901b8d95792a0dcf07d5f09cc9eafb4b9fc6c66.tar.gz
hv.h: tweak comment about HvAUX preallocation for large hashes
-rw-r--r--hv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hv.h b/hv.h
index 8ff1d140f3..062871b732 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