Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/879#issuecomment-44170023
Speaking of this operator, one day I was watching Josh Bloch give a
presentation about the dark corners of Java, and he was covering short-circuit
boolean operations. He mentioned in passing that sometimes they are faster. I
had to stop him to ask how it would be faster to always evaluate both
conditions.
His reply was that it saved the branch that decided whether to evaluate the
second condition, at the expense of having to always evaluate it of course.
When the first condition was frequently false, could be faster to let the
processor do the out-of-order evaluation rather than wait. He said this was
only rarely useful, and we should always be defaulting to `&&`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---