Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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/cs...



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: