4 ms·
Not if you're writing Math.abs(). The motivation for the article is this change in OpenJDK, where they got a 10% performance improvement by switching from the
by jonas21 5y ago
Not if you're writing Math.abs().
The motivation for the article is this change in OpenJDK, where they got a 10% performance improvement by switching from the single-branch implementation to the branchless one:
https://github.com/openjdk/jdk/pull/4711 https://github.com/openjdk/jdk/pull/4711