Code Complete

Jon Bentley describes a case in which a thousand-line program spent 80 percent of its time in a five-line square-root routine. By tripling the speed of the square-root routine he doubled the speed of the program.
Bentley also reports the case of a team that discovered that half an operating system’s time was spent in a small loop. They rewrote the loop in microcode and made the loop 10 times faster, but it didn’t change the system’s performance — they had rewritten the system’s idle loop.

via Code Complete, First Edition.

One thought on “Code Complete”

  1. Yeah for him… but it sounds like their should be some rule about the effective intelligence of a Team being equal to the inverse of the sum of all individual IQs or something like that.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.