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

From: Date: Wed, 14 May 2014 17:04:12 +0000
Subject: Re: [VOTE] [RFC] 64 bit platform improvements for string length and integer
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-74194@lists.php.net to get a copy of this message
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/






Thread (87 messages)

« previous php.internals (#74194) next »