Silly question for #dotnet folks. Does Release mode automatically call `String.Intern` on strings? I only ask because I ran a benchmark, and doing it explicitly versus not doing it amounts to identical results.

It might also be a release optimization for `StreamReader`.

@khalidabuhakmeh this implies you have string literals in your code, for every line of the file. Odd scenario.

@davidwengier doh, missing more context.

The "reader" is reading from a log file that might have duplicate lines (which is common).

Hope that clears it up?

@khalidabuhakmeh @davidwengier even before you call Intern, every string is already allocated by ReadLine(), so you're paying for all strings anyway