Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re:Persistent data structures -- why so complicated?

by Tux (Canon)
on Mar 11, 2021 at 17:46 UTC ( [id://11129463]=note: print w/replies, xml ) Need Help??


in reply to Persistent data structures -- why so complicated?

The suggested Storable is core and should work fine, but there are many more - often much nicer - ways to store persistent hashes. IMHO a more modern and better way is Sereal.

Not that for some, complex keys of code refs in values may cause havoc.

Personally I like to tie my hashes if I need persistence.

With my Tie::Hash::DBD you can even tie your hashes to be stored in a database. See this script (which you should modify to your needs) to benchmark the available methods. this page shows benchmarks for the methods I found on my system (higher values in the last column are better).


Enjoy, Have FUN! H.Merijn
  • Comment on Re:Persistent data structures -- why so complicated?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found