If i did understand exactly, from your example, that the power of 2 should be a prime.
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
I tried it on different examples and saw that this is not correct every time.
Maybe i did not understand it 100%.
perl -E "%c = (3=>5);keys(%c) = 33;say scalar(%c)"
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.