Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend.h zend_API.c zend_builtin_functions.c zend_compile.c zend_execute_API.c zend_object_handlers.c
/tests bug43128.phpt php-src NEWS
| From: | Marcus Boerger | Date: | Fri, 15 Feb 2008 20:20:46 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend.h zend_API.c zend_builtin_functions.c zend_compile.c zend_execute_API.c zend_object_handlers.c /tests bug43128.phpt php-src NEWS |
||
| References: | 1 2 3 4 5 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6411@lists.php.net to get a copy of this message | ||
Hello Stanislav,
Friday, February 15, 2008, 9:14:08 PM, you wrote:
>> exactly, just replace those calls with malloc/emalloc. That is a)
>> undersatndable, b) maintainable and c) probably faster.
We can actually always use malloc in those cases as we weren't using the
checks with alloca in the first place. And on some systems alloca maps
to malloc anyway. On those systems you actually implemented a slowdown.
marcus
> How exactly emalloc is faster that using stack?
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
Best regards,
Marcus