Re: [fastCache] Answers...

From: Date: Tue, 23 Jul 2002 07:36:41 +0000
Subject: Re: [fastCache] Answers...
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7886@lists.php.net to get a copy of this message
At 03:14 23/07/02 +0200, you wrote:
[about testing the cache just after writing it...] 'seems to be a good idea. Because, perfs are important for cache reading not for cache writing. With this solution, we could do a md5 hash by default. Any hidden problem with this clever solution ?
May I suggest a crc32() instead of md5()? It's between 3 and 10 times faster, and there have been no duplicate values in a test to 1000000 items (Source: Binarycloud-dev mailing list, originally from Smarty-dev). Peter -- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk Glenbranter - Scottish narrow gauge in 009 http://glenbranter.narrow-gauge.co.uk

« previous php.pear.dev (#7886) next »