Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there an efficient (as in, as good as having your own copy) way to share a rather large hash between sibling mod_perl processes for read-only operations? Without having to resort to Storable, Freeze/Thaw, etc. ?
There have been many such discussions in the past (using IPC::MM, IPC::SharedCache, etc. etc.) but they all work for read/write access, and therefore are complicated. I'd like only read-only access (except, of course, for the first process which reads the data in from files).
But what I'd like is a simple (but very fast) tied interface to a rather large (and complicated) hash for reading only.
Any ideas, tips, suggestions would be appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sharing a rather large data structure between siblings
by Joost (Canon) on Oct 31, 2006 at 22:40 UTC | |
|
Re: Sharing a rather large data structure between siblings
by RMGir (Prior) on Nov 01, 2006 at 12:28 UTC | |
by perrin (Chancellor) on Nov 01, 2006 at 14:54 UTC |