Re: APC distribute cache/dump files?

From: Date: Fri, 22 Jul 2011 21:47:28 +0000
Subject: Re: APC distribute cache/dump files?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Friday 22 July 2011 11:17 AM, Rasmus Lerdorf wrote:
On 07/22/2011 10:59 AM, Ferenc Kovacs wrote:
On Fri, Jul 22, 2011 at 7:04 PM, Pierre Joye<[email protected]> wrote:
yeah, just re read it and I realized that I miss the zend guard part, which is definitively not on my todos, and will never be :) On Fri, Jul 22, 2011 at 6:46 PM, Rasmus Lerdorf<[email protected]> wrote:
The original question was for something akin to Zend Guard which is an encryption mechanism. There really are no plans for that. -Rasmus
John maybe mentioned Zend Guard as an example, but imp he didn't suggested to add the feature set of ZG, only that it would be a nice feature, if APC would support dumping/restoring the cache. this way for example you could add this to your build/deployment workflow, so you don't have to warmup your cache on N machine for optimal performance.
Ah, but if it is for performance reasons, there is very little to be gained. The big win with APC comes from eliminating disk activity by pointing the executor directly at the op_array along with the in-memory function and class caches stored in shared memory. Restoring these from disk and sorting out where things go in memory is not going to be any quicker than simply recompiling the file.
apc_bin_load/_dump() functions clearly illustrate how this does not really give any benefit for an apache based instance. Although, it does work really well if you are say, running phpunit tests with a large project (and yeah, I've got a bug to fix for the drupal/drush folks). Cheers, Gopal -- http://notmysock.org/blog/

Thread (12 messages)

« previous php.internals (#54152) next »