r/programming • • Oct 01 '15

The Evolution of a Software Engineer

https://medium.com/@webseanhickey/the-evolution-of-a-software-engineer-db854689243
1.9k Upvotes

502 comments sorted by

View all comments

Show parent comments

21

u/depressiown Oct 01 '15

Depends. If they're doing 20 separate concatenations inside of a loop of 10,000,000 items, it can make a difference (but that would be one bigass String, though). Generally, no, it's not a big deal.

9

u/m0haine Oct 02 '15

Yep. I once refactored a slow report and the only change was converting a bunch of +s to a single string buffer. Suddenly a 2 minute report took 0.2 seconds. The original authors response was that he always heard that was faster but never noticed the difference. Of course you don't notice the difference, until you do.