Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39315 invoked from network); 21 Jul 2008 21:24:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2008 21:24:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 193.227.246.108 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 193.227.246.108 ip246-108-v193.static.x-ip.net Received: from [193.227.246.108] ([193.227.246.108:35455] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/17-33868-78EF4884 for ; Mon, 21 Jul 2008 17:24:24 -0400 Received: from macvicar.demon.co.uk ([80.177.111.173] helo=[192.168.1.100]) by lovelace.midden.org.uk with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1KL2ri-0002DF-BQ; Mon, 21 Jul 2008 22:24:20 +0100 Cc: Andi Gutmans , Michal Dziemianko , internals@lists.php.net Message-ID: To: Stanislav Malyshev In-Reply-To: <4884F874.7020201@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 21 Jul 2008 22:24:12 +0100 References: <698DE66518E7CA45812BD18E807866CE01D03F78@us-ex1.zend.net> <4884D20C.4090305@macvicar.net> <4884F874.7020201@zend.com> X-Mailer: Apple Mail (2.926) X-Spam-Score: -4.0 X-Spam_Report: Spam detection software, running on the system "lovelace.midden.org.uk", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: There is an aligned version of the algorithm available but its slower, there is also a 64-bit version in the works. I emailed the author about its progress to check. At the moment adding both looks the way forward, i'll benchmark a PPC version of the algorithm shortly. [...] Content analysis details: (-4.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.4 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] zend_inline_hash_function reimplementation From: scott@macvicar.net (Scott MacVicar) There is an aligned version of the algorithm available but its slower, there is also a 64-bit version in the works. I emailed the author about its progress to check. At the moment adding both looks the way forward, i'll benchmark a PPC version of the algorithm shortly. Scott On 21 Jul 2008, at 21:58, Stanislav Malyshev wrote: > Hi! > > I understand this patch has potential portability issues for > architectures that won't be able to read int's unaligned. > > Maybe we could keep both of them and do some configure test to see > if it works fine, if not - use the old one? > > Also I understand that this function returns uint while old hash > returned ulong. What happens with that on 64-bit platforms? > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com