Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
secondcoming
on April 7, 2021
|
parent
|
context
|
favorite
| on:
All C++20 core language features with examples
IIUC, the optimisation is the same, but all it does is tell the compiler what the hot path is likely to be and so the code won't 'jmp' to it; the instructions are likely to be in I-cache.
steerablesafe
on April 7, 2021
[–]
gcc (maybe other compilers too) can put the cold path to a separate section, so it further improves happy-path code cache locality.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: