Re: shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)

From: Date: Tue, 16 Aug 2005 08:48:31 +0000
Subject: Re: shared memory (Re: [PHP-DEV] PHP 6.0 Wishlist)
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-18160@lists.php.net to get a copy of this message
Ilia Alshanetsky wrote:
Shmop does just that, it takes a string of data (any data) and puts it in memory. Serialization is something sysvshm extension does. Ilia
shmop is the solution if you want to store only strings but once you want to store arrays or objects then the ser/deser is needed. Andrey
Guillaume Ponçon wrote:
It's true. I know shmop, but the ideal would be to be able to store large persistent variables in memory without serialization operations (without deserialization with each reading). Thanks for these informations. Guillaume Ilia Alshanetsky wrote:
If you just want memory access PHP already offers shmop extension for raw data storage and manipulation as well as sysvshm for storing serialized variables. Ilia Guillaume Ponçon wrote:
Ondrej Ivanič wrote:
I know about APC, but IMHO I can't use it. On webservers are Zend Optimizer or mmcache (eAccelerator now) used. But the approach is very interesting. The french java developpers and a lot of others need these shared memory functions. I think that a displacement in PHP (memory_fetch, memory_store), even with small locks about which Rasmus speaks would be very appreciated ;).

Thread (327 messages)

« previous php.internals (#18160) next »