On Wed, 2 Dec 2020 23:32:27 GMT, Anthony Scarpino <ascarp...@openjdk.org> wrote:
>> Save a operation could get a little bit performance. Comparing to "if >> (!a)", "if (a)" is easier to read to me, and save me a cycle to compute the >> "!". Anyway, not a big concern of mine, you can leave it as is if you >> prefer the "if (!a)" style. > > Just to finish up the thought. The assembly instructions are the same using > if(!a) or if(a). The difference would be how the code is setup during > compile time and I believe that would be the same speed as well.. Thank you for the check. It looks good to me and I have no more comment. ------------- PR: https://git.openjdk.java.net/jdk/pull/1568