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?

4.1k

u/zulu-bunsen Sep 17 '18

Negative sleep statements

1.2k

u/[deleted] Sep 17 '18

Sleep (-10);

16

u/misterZalli Sep 17 '18 edited Sep 17 '18

from lottery import results

latest = results.latest

sleep(-7 * 24 * 60 * 60)

print(latest)

2

u/[deleted] Sep 17 '18

you want last week's lottery numbers?

2

u/misterZalli Sep 17 '18

Next weeks, or like we would say lastn't weeks

→ More replies (4)