[Mono-devel-list] culture info patches

Miguel de Icaza miguel at ximian.com
Tue Mar 16 14:33:27 EST 2004


> I am sorry, I should have been more specific.
> I realize GCC does that, so no problem there.
> However, we do:
> + this->displayname = mono_string_new (domain, ci->displayname);
> + this->englishname = mono_string_new (domain, ci->englishname);
> + this->nativename = mono_string_new (domain, ci->nativename);
> That will *NOT* be cached in such a way. A new string will be created
> for each one.

Good point.  But realistically we will only instantiate one CultureInfo
in most systems, so a duplicated string is ok for me.


More information about the Mono-devel-list mailing list