Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

by perrin (Chancellor)
on Aug 08, 2007 at 19:13 UTC ( [id://631381]=note: print w/replies, xml ) Need Help??


in reply to Re: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)
in thread Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

IPC::Shareable is kind of slow, but it may not matter for your data. If you run into trouble with it, MLDBM::Sync is an easy way to share a hash on disk.
  • Comment on Re^2: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

Replies are listed 'Best First'.
Re^3: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)
by isync (Hermit) on Aug 08, 2007 at 20:49 UTC
    Slow!? I thought it is fast, because everything is held in memory... (the on-disk approach is what I am trying to circumnavigate here...)
      It's slow because it has to serialize and deserialize the entire hash through Storable every time you want to read or write it to/from the shared memory slot. It's fine for a small hash, but a large one will get slow.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-18 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found