mridulm commented on PR #38182:
URL: https://github.com/apache/spark/pull/38182#issuecomment-1272647395

   There is a reason to use `|` instead of `||` - you reduce chances of branch 
misprediction and minimize number of jumps - if the operations are really cheap.
   Having said that, I have not inspected the opcodes generated here - but I 
would assume that should hold.
   
   Note - this is typically used only for very performance sensitive code, 
where someone has gone to the trouble of actually ensuring the optimization 
actually gives the expected benefits.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to