c9s/Pux — pull request #25 by sjinks (2014-01-19 06:10:39+00:00)
Title: Optimizations

Optimized php_controller.c
* getActionMethods(): operate directly on return_value, do not create an intermediate zval
* getActionPaths(): use zend_hash_quick_find() instead of zend_hash_quick_find(): gcc will compute the value of zend_inline_hash_func() during compile time
* use array_init_size() instead of array_init() when the size of the array is known in advance
* use MAKE_STD_ZVAL instead of ALLOC_INIT_ZVAL where the type of zval is set explicitly

Optimized php_functions.c:
* Use zend_hash_quick_find() instead of zend_hash_find()

Optimized php_mux.c:
* Use zend_hash_quick_find() instead of zend_hash_find()
* Use zend_hash_quick_update() instead of zend_hash_update()
* Use MAKE_STD_ZVAL instead of ALLOC_INIT_ZVAL
* Use array_init_size() where the size of the array is known
* Use native var_export (php_var_export_ex from ext/standard/php_var.h) instead of a slow call to the userspace
* Use pointer arithmetics instead of a slow call to the userspace substr()