Lukas Vogel
lukasvogel.bsky.social
Lukas Vogel
@lukasvogel.bsky.social
Reposted by Lukas Vogel
We follow up on our past claims that fewer code branches are better in our return to blogging after our winter break.

Read on to find out why branches are a burden on the CPU, and what both you and the CPU can do to avoid performance penalties.

cedardb.com/blog/reducin...
Why Trees Without Branches Grow Faster: The Case for Reducing Branches in Code
In some of our blog posts, we explained what steps we take to reduce the number of branching instructions in our critical paths. However, we only ever claimed that this is much better and faster, and ...
cedardb.com
January 29, 2025 at 4:29 PM