in reply to
Re: how are the number of buckets in a perl hash chosen
in thread how are the number of buckets in a perl hash chosen
If i did understand exactly, from your example, that the power of 2 should be a prime.
I tried it on different examples and saw that this is not correct every time.
perl -E "%c = (3=>5);keys(%c) = 33;say scalar(%c)"
Maybe i did not understand it 100%.
I looked at perldata and keys and saw indeed that the number of buckets is a power of 2 but it was not explained why.