News for hackers. Stuff that matters.
Re:Writing Efficient C++ Code by MaxBarraclough on Sunday September 27, 2026 @02:56PM (#49869697)
I'm no expert in this stuff but:

creata's comment [0] mentions the works of Agner Fog, which seem very good, and are freely available.

I haven't read C++ High Performance [1] but it looks like it covers the sorts of topics you'd expect, although it looks like it doesn't cover computer architecture in detail e.g. branch prediction. There are books on that too, of course.

[0] https://news.ycombinator.com/item?id=49868657

[1] https://www.packtpub.com/en-us/product/c-high-performance-97...

Re:Writing Efficient C++ Code by blux on Monday September 28, 2026 @08:24AM (#49876895)
I have read 'C++ High Performance', and I recommend to avoid it unless you are interested in reading an STL reference guide with only minimum hints on performance sprinkled in left and right. Or unless you do not know that `std::move` will avoid a copy in some cases, etc.

In short, overpromises, underdelivers.