[Mono-devel-list] Strange performance drop with svn code lately

Ben Maurer bmaurer at ximian.com
Tue Dec 14 11:08:17 EST 2004


>                     Hi,
>
>>
>> THe fix that zoltan checked in a bit ago should fix things. Try
>> updating to head actually.
>>
>> -- Ben
>>
>
>  I'm not sure about that. If an application makes calls to
> CurrentCulture from
> different appdomains, the culture will allways be deserialized on each
> call even with the current code.

With r37747, you don't serialize the culture if it is the default one,
right? So, if you switch app domains, it should just create a new culture.

The one problem with this is that you create the culture EVERY time you
switch appdomains. The best way to handle this might be a
per-thread-per-appdomain cache. This type of thing is provided by
[ThreadStatic]. With [ThreadStatic], we could even avoid an unmanaged
transition on NPTL. (I have a patch that does this sitting around at
home...)

-- Ben





More information about the Mono-devel-list mailing list