News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by unishark on Thursday October 01, 2020 @08:47AM (#24650237)
Historically there was a big performance hit for using the fancy added abstractions of C++. Don't know if it's still that bad. But in the past it cost a factor of two or so, whenever I tried to get fancy.
Re:C++ the Good Parts (2014) by jcelerier on Thursday October 01, 2020 @11:01AM (#24651649)
> Historically there was a big performance hit for using the fancy added abstractions of C++. Don't know if it's still that bad. But in the past it cost a factor of two or so, whenever I tried to get fancy.

I don't know how much back in the past it is, but pretty much every time in the last ten years I tried to beat a C++ abstraction, I almost never managed to substantially improve (and since gcc.godbolt.org exists it made it much easier to witness that most of the abstraction layers entirely disappear at -O2)

Re:C++ the Good Parts (2014) by ncmncm on Friday October 02, 2020 @08:33PM (#24668443)
Historically, meaning "in the '90s". It has been quite a long time since the '90s. Many readers here weren't even born yet when C++ abstraction overhead was last a thing.