Knuths Optimization Principle

Apply Knuth's Optimization Principle when someone wants to optimize code before establishing it's a bottleneck, is using complex data structures for perceived performance, is making code harder to read "for speed", or is debating whether to optimize something that hasn't been profiled. Trigger on phrases like "I should make this faster", "let's pre-optimize this", "I used X instead of Y for performance", "this might be slow", or any discussion where performance is the motivation for added complexity that hasn't been validated by measurement.

The-Artificer-of-Ciphers-LLC Updated

File contents

The-Artificer-of-Ciphers-LLC/skills-from-the-artificer/tree/main/knuths-optimization-principle commit 4c3f27791f

Frequently asked questions

npx skillmds@latest add the-artificer-of-ciphers-llc/knuths-optimization-principle