If and Only If: The Performance Cost of Using If Statements and Branch Predictor. Sara Khandaker was practicing her algorithm and data structures on LeetCode. Her solution went from better than 46.58% to 77.17% in runtime and from 15.53% to 40.46% for memory usage.

3m read time From codeburst.io
Post cover image
Table of contents
If and Only IfCost of BranchingConclusion

Sort: