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.