Re[2]: [PECL-DEV] APC & Custom streams

From: Date: Mon, 26 Sep 2005 10:27:00 +0000
Subject: Re[2]: [PECL-DEV] APC & Custom streams
References: 1 2 3 4 5 6 7  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3001@lists.php.net to get a copy of this message
Hello Andreas, Monday, September 26, 2005, 12:47:48 PM, you wrote: AK> I think opcode caches like APC have been designed to cache the opcodes AK> generated from local PHP files. Yes. There're 2 places where it's essential that local files are cached: 1) device+inode numbers are used as hash key 2) file mtime is used to check if cached file has been updated on disk AK> And perhaps using the wapper code will slow down APC? There's no need to use wrapper to get either 1) or 2). For 1) any hashing method can be used to generate a [rather] unique key from the filename. For 2) we can't assure that a wrapper can efficiently return mtime (for example, http or ftp wrappers - in theory, they can retrieve mtime, but it would require network activity). But I don't think that we can't use APC with wrappers :) I'm sure it's acceptable to consider wrapper'ed PHP files as 'never modified', because they still can be removed by TTL check. -- Best regards, val mailto:val@vk.kiev.ua

« previous php.pecl.dev (#3001) next »