[PATCH] malloc: remove __builtin_expect

Steven Munroe munroesj@linux.vnet.ibm.com
Tue Jan 26 20:43:00 GMT 2016


On Tue, 2016-01-26 at 10:56 +0300, Yury Gribov wrote:
> On 01/26/2016 03:24 AM, Joern Engel wrote:
> > From: Joern Engel <joern@purestorage.org>
> >
> > It was disabled anyway and only served as obfuscation.  No change
> > post-compilation.
> 
> FYI I've witnessed significant improvements from (real) __builtin_expect 
> in other projects.
> 
It depends on the platform and if the programmer correctly understands
the behavior of the program as written.

Net, except for error cases that "should not happen, ever", a bad idea.




More information about the Libc-alpha mailing list