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