[Mono-devel-list] [PATCH] Reworked unified Locale classes

Ben Maurer bmaurer at ximian.com
Thu Jun 23 01:53:34 EDT 2005


On Thu, 2005-06-23 at 00:45 -0400, Miguel de Icaza wrote:
> Also, to apply this kind of patch that will affect everything, I would
> like to know in advance the memory footprint (running mono --profile
> before/after should tell us this) and how much extra code is JITed at
> startup (how much slower this becomes for a sample program).

In terms of corlib code, Locale.GetText should actually be relatively
rare: only used in exceptional code paths. So, I have the feeling that
this is not as bad as it looks. Once you get a stack trace that will go
to the console, it's not like an extra 50 ms will really make a
difference :-).

Anyways, the biggest source of jit'ing that i can see in that code is
due to:

typeof (Locale).Assembly.GetName ().Name

Which, IIRC does a relatively wide range of stuff.

-- Ben




More information about the Mono-devel-list mailing list