On May 14, 2014 7:15 PM, "Dmitry Stogov" <dmitry@zend.com> wrote:
>
> 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.
No, it does clean implementation and make it safe. Further improvements
with phpng can be done but it was obviously not possible before, because
phpng did not even exist from a php.net POV.
> Thanks. Dmitry.
>
>
> On Wed, May 14, 2014 at 9:04 PM, Andrea Faulds <ajf@ajf.me> wrote:
>
> >
> > On 14 May 2014, at 12:18, Dmitry Stogov <dmitry@zend.com> wrote:
> >
> > *base structure sizes [bytes]*
> >
> > phpng str_size_and_int64 diff
> > zval 16 16 0.00%
> > zend_string 24 32 33.33%
> > HashTable 56 72 28.57%
> > Bucket 32 32 0.00%
> > zend_op_array 248 264 6.45%
> > zend_class_entry 512 568 10.94%
> > zend_op 48 56 16.67%
> >
> > *base structure sizes [bytes]*
> >
> > master str_size_and_int64 diff
> > zval 24 24 0.00%
> > HashTable 72 80 11.11%
> > Bucket 72 72 0.00%
> > zend_op_array 248 272 9.68%
> > zend_class_entry 576 608 5.56%
> > zend_op 48 56 16.67%
> >
> >
> > Interesting, what’s going on here? It seems to have a worse effect on
> > phpng HashTable than on master’s. Does the struct need re-aligning
again,
> > perhaps? Or did it just fit neatly into an existing blank space in
master’s
> > HashTable?
> > —
> > Andrea Faulds
> > http://ajf.me/
> >
> >
> >
> >
> >