Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Hashes do preserve insertion order after all

by swl (Parson)
on Aug 01, 2019 at 08:06 UTC ( [id://11103697]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Hashes do preserve insertion order after all
in thread Hashes do preserve insertion order after all

This is pretty much what Hash::Ordered does, but with tombstoning to reduce the overheads when deleting. See its POD (and code) for details, as well as its benchmarking results.

  • Comment on Re^5: Hashes do preserve insertion order after all

Replies are listed 'Best First'.
Re^6: Hashes do preserve insertion order after all
by LanX (Saint) on Aug 01, 2019 at 11:11 UTC
    What a great and deep work.

    The author didn't only list a bunch of alternatives, but also provided a benchmark module to compare them.

    I was going to lament that the OO handling breaks with normal hash interface, but he also later added an alternative tie mechanism plus a backdoor with tied to access the methods directly!

    +++

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Yes, his modules are usually pretty good and with thorough documentation. The exceptions tend to be clearly flagged as experimental.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found