3 ms·
I once had a user complaining how long a batch job took. After much research, I found a "SLEEP 10" command (sleep for 10 seconds) inside a loop. I commented i
by edw519 19y ago
I once had a user complaining how long a batch job took. After much research, I found a "SLEEP 10" command (sleep for 10 seconds) inside a loop. I commented it out and the run time went from 2 hours down to 6 minutes.
At the next meeting, my PHB asked why Joe User was gushing with so many compliments about me. I explained what I did.
"Idiot!" he said, "You should have changed it to SLEEP 5 so the next time he complains we have something else to give him."
- reitzensteinm 19y agoReminds me of the Daily WTF one where a customer complained about the length of time a batch data processing operation was taking, so they optimised the hell out of the routine and did the same job in 1/100th the time, and charged them $x. The customer decided that, obviously, something must be wrong since something that is doing so little work can't be accurate, how can they trust it? etc. So they added a delay 5, charged them an extra $x/4, and everybody was happy. I'd try to find the link, but pretty much every Daily WTF article contains the same search terms...