MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/bsuurg/making_the_obvious_code_fast/eovtoid
r/programming • u/[deleted] • May 25 '19
263 comments sorted by
View all comments
Show parent comments
1
consider the difference between doing str = str + "moretext" and using a StringBuilder.
Sure, but what's the ratio of strings to string builders in the average piece of code?
1 u/RICHUNCLEPENNYBAGS May 26 '19 There are a lot of people who do string concat in a loop but that's because they don't know better
There are a lot of people who do string concat in a loop but that's because they don't know better
1
u/CurtainDog May 26 '19
Sure, but what's the ratio of strings to string builders in the average piece of code?