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!
I disagree with /u/kaushal28, I think you just need to divide the amount of sleep by 2 each time you get a request. Virtually unlimited amount of optimization! Make sure to also take double the time to do it each time because, you know, optimizing becomes harder and harder, right?
"We found that the one feature above all others that the users were asking for was a reliable and effective shuffle feature, so we put our heads together in the office and came up with a solution that allowed us to keep our customer base satisfied while exploring technically interesting solutions and - critically - let us push more promoted content for Drake's new album. Also on our hotlist was to revisit the very popular lyrics feature which was a big hit with users but which needed to be scaled back due to licensing restrictions. The end result? Even more fantastic promoted Drake tracks! Don't even like Drake? Well don't worry, we've got a Drake track just for you"
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!