Description[POSSIBLE PERFORMANCE IMPACT] Remove UNLIKELY from bindings required arguments check
We'd like to remove UNLIKELY from the bindings code, as it is generally
not very useful (and just clutters the code).
This potentially has *performance impact*, but should not change behavior.
We're thus doing this one place at a time, starting here
(over ~7 CLs, assuming it goes ok).
Specifically, UNLIKELY adds a |__builtin_expect(..., 0)| for GCC,
so any perf impact would show up on Linux only.
Tested via Dromaeo DOM Core Tests
http://dromaeo.com/?dom
Looks like a 1% regression on DOM attributes
(before ~1000, after ~990),
others within noise.
Before:
http://dromaeo.com/?id=211724
http://dromaeo.com/?id=211731
After:
http://dromaeo.com/?id=211727
http://dromaeo.com/?id=211732
For reference:
#if COMPILER(GCC)
#define UNLIKELY(x) __builtin_expect((x), 0)
#else
#define UNLIKELY(x) (x)
#endif
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/wtf/Compiler.h&q=UNLIKELY&l=153
GCC docs:
http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
Patch Set 1 #Patch Set 2 : Remove FIXME #Messages
Total messages: 7 (0 generated)
|