[Mono-devel-list] culture info patches
Miguel de Icaza
miguel at ximian.com
Tue Mar 16 11:38:39 EST 2004
Hello,
> So in the tables we have stuff like:
> static const CultureInfoEntry culture_entries [] = {
>
> {0x0009, "English", "English", "English", "eng", "en", -1, -1},
>
> {0x1009, "English (Canada)", "English (Canada)", "English (Canada)",
> "eng", "en", 0, 0},
>
> As I understand it, a string like "English" gets created multiple times
> when you create the culture info. Maybe you need some interning here.
> This would help in other places too: for example, all the english
> varients use the same names for the days of the week, so you save a
> creation there.
As long as all the strings live on the same file the compiler will do
this for us, so only one copy of "English" ever exists.
So we do not need to do anything else.
Miguel.
More information about the Mono-devel-list
mailing list