Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53633 invoked from network); 21 Jul 2008 15:39:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2008 15:39:49 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:53640] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/14-33452-2CDA4884 for ; Mon, 21 Jul 2008 11:39:49 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id F3E02414400A; Mon, 21 Jul 2008 15:40:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qVY9jacw1vyn; Mon, 21 Jul 2008 17:40:38 +0200 (CEST) Received: from [192.168.4.116] (cust.static.84-253-51-151.cybernet.ch [84.253.51.151]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 8A31E4144009; Mon, 21 Jul 2008 17:40:38 +0200 (CEST) Cc: internals@lists.php.net Message-ID: <986BD44D-BC5F-472E-8365-2D01A8B8C250@pooteeweet.org> To: Michal Dziemianko In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Date: Mon, 21 Jul 2008 17:38:13 +0200 References: X-Mailer: Apple Mail (2.928.1) Subject: Re: [PHP-DEV] zend_inline_hash_function reimplementation From: mls@pooteeweet.org (Lukas Kahwe Smith) 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=54 speeding 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