sjolsen.cdda.wav: "anyway, here's the cliff notes of "premature opti…" - LGBTQIA+ and Tech

submited by
Style Pass
2024-10-14 20:00:07
anyway, here's the cliff notes of "premature optimization is the root of all evil:" - knuth is using the term "optimization" to describe semantics-preserving local program transformations -- things like loop unrolling, strength reduction, code hoisting - knuth argues that you should not performs such optimizations manually until you have identified the hot code paths - knuth very specifically does *not* argue that structuring your program well, choosing the right data structures, etc. is a form of premature optimization; in fact he recommends that you direct your attention to these aspects of design *instead* of fiddling with loop unrolling etc.
Leave a Comment