Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Performance of hash and array inserts

by LanX (Sage)
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 musing on the Monastery: (3)
As of 2022-05-28 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?