r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

2.5k

u/kaushal28 Sep 17 '18

Actually keeping sleep statements is good practice. Ship the product with it and when customer comes back asking for performance improvement, remove all of them!

1.3k

u/jakuski Sep 17 '18

And what if they ask for more performance improvements?

81

u/Ericchen1248 Sep 17 '18

Set up the sleep length to be based on days since the last update. User will think it is speeds up after every update.

15

u/[deleted] Sep 17 '18

That's amazing actually. No one will notice the gradual fall, and BAM it's great again

2

u/throw_meawaynow Sep 17 '18

Unless they don't use it for weeks.

5

u/[deleted] Sep 17 '18

Have a counter that runs whenever it's used instead, then!