We discovered that in some cases the compiler was doing a “bad job” because the C++ code was preventing the compiler from optimizing. This typically happens when developers try to save a few lines of code instead of writing more explicit algorithms.

~ Benjamin Poulain

https://www.webkit.org/blog/2826/unusual-speed-boost-size...