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

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 ( [id://631406]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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?)

Slow!? I thought it is fast, because everything is held in memory... (the on-disk approach is what I am trying to circumnavigate here...)
  • Comment on Re^3: Parallel::ForkManager and vars from the parent script - are they accessible? (or do I need inter process communication?)

Replies are listed 'Best First'.
Re^4: 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 21:06 UTC
    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://631406]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found