Jc-alt logo
jc

Textbook: Cpp High Performance

Textbook: Cpp High Performance
1 min read
system design

C++ High Performance Intro

Learning how to use C++ to arrive at the machine code that you want. Since at the end of the pipeline, the machine isn't running C++.

The real art is getting the machine code you want without making the source code look nightmarish. The compiler writers do a massive amount of work to help, but there are many opportunities for operator error.

Optimizing how many instructions the C++ is turned into is important, but IMO the lower hanging fruit is making sure your data structures are optimized and the memory layout cache coherent. It's amazing how much difference that alone makes.