![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Performance of hash and array insertsby LanX (Saint) |
on Oct 15, 2021 at 19:45 UTC ( #11137600=note: print w/replies, xml ) | Need Help?? |
If you are interested in the implementation, we had a discussion here not long ago with pointers into the relevant doc. Re: can I change hash keys or values directly HTH! :)
updateIn short, rehashing is expensive but only happens in doubling steps, which makes the costs constant in average.
Cheers Rolf
In Section
Meditations
|
|