MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x4hiqv/stdmodernizemycodebase/pgr7hb9/?context=3
r/ProgrammerHumor • u/Ok-Counter-6984 • Oct 12 '26
44 comments sorted by
View all comments
Show parent comment
1
How is unique_ptr not a zero cost abstraction? Is this anything other than compilers making avoidable optimization errors that will get fixed with time?
3 u/Thecuriousserb Oct 14 '26 Long story short unless you turn off exceptions, the stack unwinding code fucks up assembly for hot loops
3
Long story short unless you turn off exceptions, the stack unwinding code fucks up assembly for hot loops
View all comments
Show parent comment
1
u/cheapcheap1 Oct 14 '26
How is unique_ptr not a zero cost abstraction? Is this anything other than compilers making avoidable optimization errors that will get fixed with time?