Re: zend_inline_hash_function reimplementation
| From: | Lukas Kahwe Smith | Date: | Mon, 21 Jul 2008 15:38:13 +0000 |
| Subject: | Re: zend_inline_hash_function reimplementation | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39130@lists.php.net to get a copy of this message | ||
On 21.07.2008, at 17:29, Michal Dziemianko wrote:
Hello, I have looked into Zend/zend_hash.h and I guess it might be sped up a little. So far it uses D. Bernstein's hash which is quite fast, but I think it might be worth replacing it with MurmurHash. I have tried comparison of speed for them (both as separate C programs, and compiled into PHP 5_3). Results for REAL keys (collected on running web server) are at the bottom of this page: http://212.85.117.53/gsoc/index.php?option=com_content&view=article&id=65:hash-functions-for-hash-tables&catid=34:profiling&Itemid=54speeding up array's does indeed look like a place where one could give a nice boost to many php applications. however it is also a place that could create such as many problems of course. so getting this into 5.3 seems a bit unlikely at this point given that the feature freeze is planned for the 24th. that being said, on the page i only see benchmarks with artificial data/code. did you also run some benchmarks again some popular php applications so see what the real world benefits are in terms of requests per second? regards, Lukas Kahwe Smith mls@pooteeweet.org