Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Performance of hash and array inserts

by LanX (Saint)
on Oct 15, 2021 at 19:45 UTC ( #11137600=note: print w/replies, xml ) Need Help??


in reply to Performance of hash and array inserts

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! :)

update

In short, rehashing is expensive but only happens in doubling steps, which makes the costs constant in average.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: Performance of hash and array inserts

Replies are listed 'Best First'.
Re^2: Performance of hash and array inserts
by bliako (Monsignor) on Oct 18, 2021 at 16:39 UTC

    thanks for the link ot an interesting exchange which I somehow missed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137600]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-09-22 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?