Re: feature request : easy shared memory

From: Date: Thu, 14 Mar 2013 17:14:15 +0000
Subject: Re: feature request : easy shared memory
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 03/14/2013 09:13 AM, Bob Weinand wrote:
> And there is no possibility to store the zval as raw binary data like in memory (deep copy?)
> So that you only have to copy from ram? And replace the pointers to the place in the string?
> This must be possible I think. And should be faster.
> 
> shmop has to be opened on every request and only supports strings.
> APC, memcache,... can only save under serialized form which is slow.

APC doesn't serialize most types. Only actual objects need to be
serialized because it is the easiest way to fully save and restore
objects. eg. calling their __sleep()/__wakeup() magic methods, etc.
Arrays are not serialized.

-Rasmus



Thread (11 messages)

« previous php.internals (#66621) next »