matheusmello.io
BlogProduct ReleasesToolsBooksContact

branch-prediction

How do the likely/unlikely macros in the Linux kernel work and what is their benefit?
branch-prediction
September 2, 20231 min read

How do the likely/unlikely macros in the Linux kernel work and what is their benefit?

# How do the `likely`/`unlikely` macros in the Linux kernel work and what is their benefit? If you've been delving into the Linux kernel recently, you may have come across some intriguing calls like these: ```c if (unlikely(fd < 0)) { /* Do something

branch-predictionc#gcc
Why is processing a sorted array faster than processing an unsorted array?
branch-prediction
September 2, 20231 min read

Why is processing a sorted array faster than processing an unsorted array?

# Why is processing a sorted array faster than processing an unsorted array? Have you ever wondered why processing a sorted array is faster than processing an unsorted array? 🤔 In this blog post, we'll dive into the reasons behind this phenomenon, discus

branch-predictioncpu-architecturejava
+1

About

Personal blog sharing insights on software engineering, technology, and developer productivity.

TwitterGitHubLinkedInEmail

Tags

Loading tags...

Subscribe to Updates

Get the latest posts delivered right to your inbox.

© 2025 MatheusMello.io. All rights reserved.