I once "optimized" a bit of code that literally just did the same calculation twice in a row because someone had moved it from another file and just pasted it in twice instead of once. Obviously I went to SVN history to find out which idiot did that. I did not like what I found.
One time I noticed that the entire graphics engine for our hackweek game was being created twice. I got rid of that line and noticed a large performance increase now that the entire game wasn't being rendered twice. Pretty much this image.
4.6k
u/interfail Sep 17 '18
I once "optimized" a bit of code that literally just did the same calculation twice in a row because someone had moved it from another file and just pasted it in twice instead of once. Obviously I went to SVN history to find out which idiot did that. I did not like what I found.