Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re:^4 How to share huge data structure between threads?

by ph0enix (Friar)
on Jan 15, 2003 at 09:30 UTC ( [id://227098]=note: print w/replies, xml ) Need Help??


in reply to Re:^3 How to share huge data structure between threads?
in thread How to share huge data structure between threads?

This should be some kind od dictionary. As I wrotte in my original post. Data structure of stored value is hash of array of objects.

Currently only working solution is Tie::RDBM with PostgreSQL database backend. Trying to save data in memory I can't share whole hash which contain values as I described before. Because all server threads must be able to add / delete / modify this data I'm currently looking on solutions based on Tie::RDBM + PostgreSQL and MLDBM + BerkeleyDB. When BerkeleyDB with MLDBM is used I get some strange errors probably originaly from Storable module - 'inbalid byte order', 'wrong signature' or 'bad data'...

Other problem I have with tied hashes and Storable (not solved yet) was described in node Storable: where is my memory?.

  • Comment on Re:^4 How to share huge data structure between threads?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-06-15 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.