Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69325 invoked from network); 24 Jan 2014 08:36:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2014 08:36:23 -0000 Authentication-Results: pb1.pair.com header.from=ab@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ab@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.73.107 as permitted sender) X-PHP-List-Original-Sender: ab@php.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:60735] helo=klapt.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/C8-39789-10622E25 for ; Fri, 24 Jan 2014 03:36:18 -0500 Received: by klapt.com (Postfix, from userid 33) id B5FE423D60EC; Fri, 24 Jan 2014 09:36:13 +0100 (CET) Received: from 84.57.244.13 (SquirrelMail authenticated user anatol@belski.net) by webmail.klapt.com with HTTP; Fri, 24 Jan 2014 09:36:13 +0100 Message-ID: In-Reply-To: References: <52E0F55F.4040802@lsces.co.uk> <52E16AC2.8070400@ajf.me> Date: Fri, 24 Jan 2014 09:36:13 +0100 To: "Dmitry Stogov" Cc: "Pierre Joye" , "Andrea Faulds" , "Derick Rethans" , "PHP Internals" Reply-To: "Anatol Belski" User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] 64 bit platform improvements for string length and integer From: ab@php.net ("Anatol Belski") Hi Dmitry, On Fri, January 24, 2014 08:32, Dmitry Stogov wrote: > Unfortunately, my benchmarks on Linux show that 64-bit PHP builds are > always a bit slower on real-life applications. It's because 64-bit PHP uses > more memory and as result causes more CPU cache misses. > i suppose the perf test on windows to be done today. That topic was also it my mind while worked on str_size_and_int64 branch. What I have seen is that till now PHP code doesn't really care about 64 bit performance. I was reading the "Software Optimization Guide for AMD64 Processors" http://support.amd.com/TechDocs/25112.PDF and comparing with their recomendations one can find many places in PHP code needing some refactoring. Some primitive points to name like use of non contiguous values in switches, 32 bit vars in loops, no homogeneous 64 bit vars usage, etc. - could be improved. One of good moves is usage of the const qualifier lately. Now with the consistent 64 bit support such a refactoring would have base and sense. Regards Anatol