Re: [RFC] 64 bit platform improvements for string length and integer
| From: | Dmitry Stogov | Date: | Fri, 24 Jan 2014 07:32:15 +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 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71484@lists.php.net to get a copy of this message | ||
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.
Thanks. Dmitry.
On Thu, Jan 23, 2014 at 11:23 PM, Pierre Joye <pierre.php@gmail.com> wrote:
> On Thu, Jan 23, 2014 at 8:17 PM, Andrea Faulds <ajf@ajf.me> wrote:
> >
> >
> > On 23/01/14 13:12, Dmitry Stogov wrote:
> >>
> >> It would be a significant performance degradation :)
> >> Just imagine how to implement 64-bit multiplication and division on
> 32-bit
> >> CPU.
> >
> >
> > I doubt as much. Aren't the vast majority of servers 64-bit anyway? And
> > those that aren't are probably just 32-bit-mode 64-bit CPU servers, which
> > wouldn't be slow, right?
>
> RIght, 32bit mode are not slower, at least for basic operations, other
> ops are slower (couple of more cycles, less registers, etc.). However
> 64bit mode combined with 64 binaries can be much faster than 32bit
> binary on the same processor.
>
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://www.libgd.org
>