Re: [PATCH] arithmetic speedup
| From: | Stas Malyshev | Date: | Sat, 21 May 2011 20:40:14 +0000 |
| Subject: | Re: [PATCH] arithmetic speedup | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52495@lists.php.net to get a copy of this message | ||
Hi!
What platform was that on? GCC already inlines its builtins by default (even at -O0). I.e., the abs() generates the following code:As I understand, Sebastian wasn't talking about inlining C abs(). He was talking about converting PHP abs() (which is a function call right now with all overhead that this implies) to an opcode, which makes it somewhat cheaper to call, since the engine will be handling it without the overhead associated with PHP function call. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227