4 ms·
thank you. I had tested it on ubuntu 14.04 LTS in VMWARE on my windows-7 Toshiba laptop. I had tested the array_sum built-in function of PHP by rewriting it as
by hharake 12y ago
thank you. I had tested it on ubuntu 14.04 LTS in VMWARE on my windows-7 Toshiba laptop. I had tested the array_sum built-in function of PHP by rewriting it as a PHP function. The performance of that function after the compilation as an extension is exactly equal to the performance of the built-in function.
- jimthunderbird 12y agoCool! And now it has a lot more features, allowing one to further improve performance by integrating with raw C code, see: https://github.com/jimthunderbird/php-to-c-extension#example-13 https://github.com/jimthunderbird/php-to-c-extension#example... https://github.com/jimthunderbird/php-to-c-extension#example-14 https://github.com/jimthunderbird/php-to-c-extension#example... https://github.com/jimthunderbird/php-to-c-extension#example-15 https://github.com/jimthunderbird/php-to-c-extension#example...
- jimthunderbird 12y agoOh, by the way it is working on MAC OS too.