String interning

by Marius Gheorghe 23. July 2007 12:52
Sometimes you can squeeze out a little performance from string handling by "interning" them. This is useful, for instance, when you create dynamically multiple strings with the same value. You can intern them by calling
String.Intern(value);

Tags:

dotNET

Comments are closed

marius gheorghe

developer, dad, gamer

Contact me

My Resume

Favourite Tools