No, No, No, Light Speed Is Too Slow.

posted ago by mike

“The CPU,” he said, “runs at a certain speed. It can execute a fixed number of instructions per second, and no more. There is a finite limit to how many instructions per second it can execute. Right?”

“Right,” I said.

“So there is no way, really, to make code go faster, because there is no way to make instructions execute faster. There is only such a thing as making the machine do less.”

He paused for emphasis.

To go fast,” he said slowly, “do less.

http://asserttrue.blogspot.com/2009/03/how-to-write-fast-code.html

p.s. the site should be a bit faster now ;)

Comments (2)

  • Ben

    No it’s not. http://www.xsilva.com/

  • Clinton

    ha ha – I guess you could say necessity is the mother efficiency too.
    Talking about efficiency, I just read somewhere that Gates coded his original version of Basic to run in less than 4 kilobytes of memory. Unimaginable.

to add a comment.
Add Comment