4 ms·
I think that still makes sense. If you use that branch rarely enough that another one takes its place in the predictor, then it's likely not important enough to
by viraptor 4y ago
I think that still makes sense. If you use that branch rarely enough that another one takes its place in the predictor, then it's likely not important enough to matter in the grand scheme of things. Cmov -vs- branch will be most important in stream processing / tight loop. When it's "once in a while" then who cares?
- terrelln 4y agoIt can still matter. You can have a common function that is inlined everywhere that takes a ton of CPU in aggregate, but each callsite is small. E.g Map::find().