5 ms·
I'm hijacking a bit, but one thing I've been really wanting is some advanced optimization material for C++. There's so much that goes into data locality, branch
by Jeaye 3y ago
I'm hijacking a bit, but one thing I've been really wanting is some advanced optimization material for C++. There's so much that goes into data locality, branch elimination, faster ways to copy word-aligned data, and so on. I've picked up all I know on the fly, but would love some great resources which go deep into this. Is there something more instructive than Intel manuals?
Closest thing I found recently is this: https://agner.org/optimize/optimizing_cpp.pdf https://agner.org/optimize/optimizing_cpp.pdf
- bboreham 3y agoI really enjoyed “Speed Is Found In The Minds Of People”, a talk by Andrei Alexandrescu. At first he is just showing simple stuff, but stay with it, he goes deep. https://m.youtube.com/watch?v=FJJTYQYB1JQ https://m.youtube.com/watch?v=FJJTYQYB1JQ
- Jeaye 3y agoAh, I'm familiar with Alexandrescu. Thanks for this suggestion!
- rramadass 3y agoYou might want to check out Fedor Pikus' The Art of Writing Efficient Programs. Also see Victor Eijkhout's books : https://theartofhpc.com/ https://theartofhpc.com/