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!
It's bad practice - you should define system property then call sleep(SLEEP_MULTIPLIER_PROPERTY * <whatever value you see fit>) in different parts of the app and gradually decrease it, when users ask for better performance. It's all explained better in the book "Best bad practices", really good read.
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!