02 February 2009

But avoid .Replace()

Jeff Atwood puts the performance meter on various methods of string concatenation in C# and finds that no one has to be a shlemiel.
...you should be more worried about the maintainability and readability of your code than its performance. And that is perhaps the most tragic thing about letting yourself get sucked into micro-optimization theater—it distracts you from your real goal: writing better code.

No comments: