On 5/7/07, Carl Johnstone <suppressed> wrote:
You can use shared memory between apache processes. Check: *Apache::SharedMem* <http://search.cpan.org/author/RSOLIV/Apache-SharedMem-0.09/lib/Apache/SharedMem.pm> *Tie::ShareLite* <http://search.cpan.org/author/NSHAFER/Tie-ShareLite-0.03/ShareLite.pm> *Cache::SharedMemoryCache* <http://search.cpan.org/author/DCLINTON/Cache-Cache-1.05/lib/Cache/SharedMemoryCache.pm> all based on *IPC::ShareLite* <http://search.cpan.org/author/MAURICE/IPC-ShareLite-0.09/ShareLite.pm>
These have terrible performance unless you are just sharing a few simple scalars. They serialize the entire data structure with Storable on every write and deserialize on every read. You can imagine how bad that gets if you try to share a 10MB hash. - Perrin
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.