Tech
An unlikely experiment
There are so many great places to learn about out there on the internet, and one of those great places is the legendary Linux Kernel. If you stumble around some of that codebase (even if you don't understand much) you might see an interesting pattern littered throughout:
if ( unlikely ( condition_that_does_not_happen_much )) {
// do thing
} else {
// do more common thing
}
What is this mysterious unlikely ? Why do we need to tell the computer th...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to