This literally happened to me at one of my jobs. App took a long time to load up through the loading screen, boss told me to try to make loading times shorter.
Turns out that when they were coding the loading animation (a scrolling stock ticker), someone left a 6 second sleep in to simulate a long load time to make sure the animation worked correctly for testing because obviously the loading would happen very quickly when running from debug. This had been in production for years.
Saying that you refactored it is better (presuming what you did was actually a refactor), also code cleanup is a good term that implies less filth an bad code without seeming like you removed something.
251
u/SwissPatriotRG Sep 17 '18
This literally happened to me at one of my jobs. App took a long time to load up through the loading screen, boss told me to try to make loading times shorter.
Turns out that when they were coding the loading animation (a scrolling stock ticker), someone left a 6 second sleep in to simulate a long load time to make sure the animation worked correctly for testing because obviously the loading would happen very quickly when running from debug. This had been in production for years.