Github user rxin commented on the issue:

    https://github.com/apache/spark/pull/13439
  
    What I meant is that if in one process you have some invocation of the 
function that would hit the true branch, and some other invocation of the 
function that would hit the false branch, the performance is going to be worse. 
Google "branch prediction" for more information.
    
    Basically you can't measure the overhead of an extra branch in practice by 
running a benchmark in which the flag is either always false or always true.


---
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.
---

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

Reply via email to