Re: [RFC] 64 bit platform improvements for string length and integer

From: Date: Fri, 24 Jan 2014 08:36:13 +0000
Subject: Re: [RFC] 64 bit platform improvements for string length and integer
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-71486@lists.php.net to get a copy of this message
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

« previous php.internals (#71486) next »