Re: [PATCH] arithmetic speedup

From: Date: Sat, 21 May 2011 21:25:16 +0000
Subject: Re: [PATCH] arithmetic speedup
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-52496@lists.php.net to get a copy of this message
On 5/21/11, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > 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. That probably makes sense. The original diff had optimizations using x86 assembler; this mislead me. (-;

« previous php.internals (#52496) next »