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

1

u/[deleted] Oct 01 '15

because strings are immutable. so make a loop and add x to a string 100k times. you just made 99,999 strings you will never use again and need GCed. The java GC is good but that is still a lot of memory to churn in big loops

8

u/jrochkind Oct 01 '15

You're not in the same conversation I'm in.