Y
Hacker News
new
|
ask
|
show
|
jobs
by
tmtvl
138 days ago
Don't forget about branch prediction (GCC may have __builtin_expect, but that's not standard C).
1 comments
direwolf20
138 days ago
The compiler usually can't do anything about branch prediction. Expect is more about keeping cold paths out of the cache.
link
pjmlp
138 days ago
Actually that was one of the problems with EPIC architectures, where compilers are expected to be the ones doing those kind of optimizations.
link