Hacker News new | ask | show | jobs
by secondcoming 1072 days ago
You learn by doing. Compiler Explorer [0] is fantastic for this sort of thing. Typically you would do this sort of optimisation after profiling and then on a per-function level.

[0] godbolt.org