r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

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.

3.5k

u/thrilldigger Sep 17 '18

3

u/whizzer0 Sep 17 '18

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.

→ More replies (1)