2 ms·
> Keeping code small is advantageous to performance because it makes it easier to keep the code you are running inside high speed CPU cache. It's not called th
by indolering 6y ago
> Keeping code small is advantageous to performance because it makes it easier to keep the code you are running inside high speed CPU cache.
It's not called the Iron Law of Performance[0] for nothing:
Time/Program = Instructions/Program * Cycles/Instruction * Time/Cycle
[0]: https://compas.cs.stonybrook.edu/~nhonarmand/courses/sp15/cse502/slides/02-review.pdf https://compas.cs.stonybrook.edu/~nhonarmand/courses/sp15/cs...