I removed a sleep(1) call from the main loop of a chat server I wrote and sped it by a factor of a few hundred. :)

  • 44
    Haven't you heard the story of the decrementing sleep number in code?
    It is about a company that was expected to improve performance with each release. So they made a sleep function with a big number initially and kept decrementing it.

    You just removed all your performance improvements in one :P
  • 6
  • 11
    The question is "Why was it there in the first place?"
  • 4
    It was a feature
  • 0
  • 2
    @kamen I believe I put it there to test something in the **very** early stages of writing it and forgot all about it.
Add Comment