Free Geeks

Mysterious branch misprediction

Mysterious branch misprediction

Branch predictor is one of the crucial parts of a cpu that maximizes performance of pipelines. In software layer, we didn’t have any direct control on BP but is this means that we can ignore it when we are writing programs? The short answer is No, but why? In this post I will try to answer this question with some examples on Go.

Continue reading →