Re: [RFC] 64 bit platform improvements for string length and integer
| From: | Anatol Belski | Date: | Sat, 25 Jan 2014 10:47:08 +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 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-71556@lists.php.net to get a copy of this message | ||
Hi Dmitry,
On Fri, January 24, 2014 12:29, Dmitry Stogov wrote:
> I would be glad t see any 64-bit performance related improvements.
>
> BTW: the performance degradation is expected. Each pointer is 64-bit
> instead of 32-bit => more memory consumption => more CPU cache pressure =>
> more CPU cache misses.
>
> On the other hand x86-64 uses more CPU registers, MMX, SSE, passes
> arguments in registers, so it's usually faster on small tasks that keep
> working set in CPU caches.
>
Wouldn't then the small parts improve the whole? Fixing the small cases
laying on the surface like implicit 32 vs 64 bit type conversions, better
struct packing and similar measures would already contribute to more
efficient processor and memory usage. That would probably turn many things
even more upside down though :) As yep, potentially 64 bit should be
faster, so it's worth a try to lean PHP towards.
Especially as you welcome it, I would put the topic on my todo after
properly finishing this RFC. Besides potential improvement that's also an
exciting matter.
Regards
Anatol