Re: Performance improvements
| From: | Stanislav Malyshev | Date: | Wed, 24 Mar 2010 23:41:12 +0000 |
| Subject: | Re: Performance improvements | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47585@lists.php.net to get a copy of this message | ||
Hi!
Wouldn't it suffice to add a field for the hash value and a flag that indicates its validity to zval instead of appending zend_literal everywhere?Enlarging zval would be costly (the engine uses tons of zvals) and may also be more complicated to track (all zval operations now would also have to take care to set the flag right - what if we forget in some extension to set it right?). I think it's better not to mess with zval. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com