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

From: Date: Wed, 14 May 2014 19:10:44 +0000
Subject: Re: [VOTE] [RFC] 64 bit platform improvements for string length and integer
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-74210@lists.php.net to get a copy of this message
On Wed, May 14, 2014 at 8:35 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> phpng optimizes core data structures and primitives especially to reduce
>> memory consumption and transfer.
>> The effect of the patch on phpng might be worse than on master, because it
>> does opposite things.
>
> Maybe we could optimize it by using different lengths for data and for
> language-based strings? One can plausibly argue you can have 2G string
> in zval, but having 2G class name is clearly out of the bounds of
> reality. In fact, for class names even single byte would probably be
> enough,

You have a point here, for class, variable and co names, everything is
in place already and does not need size_t. That's easy to change.

Everything else (zval and co) needs it tho.

Cheers,
-- 
Pierre

@pierrejoye | http://www.libgd.org


Thread (87 messages)

« previous php.internals (#74210) next »