3 ms·
I've never worked in .Net, but I know that in Java there is a huge performance difference when building a long string incrementally. If there are n pieces, usi
by btilly 16y ago
I've never worked in .Net, but I know that in Java there is a huge performance difference when building a long string incrementally. If there are n pieces, using stringbuilder is O(n) while concatenation is O(n * n).
When you're building a large web page, the difference is worth paying attention to.