[Mono-devel-list] Why not to use gettext ()

Ben Maurer bmaurer at ximian.com
Thu Jun 16 19:16:59 EDT 2005


On Fri, 2005-06-17 at 00:29 +0200, Andreas Nahr wrote:
> ResourceManager would need to construct a hashtable using more that 500.000 
> function calls (resulting in a high number of million or even billion 
> operations) consuming about 1-2MB of ADDITIONAL RAM (additional to the 
> strings, assuming identifier length of 10-20 chars). This would be managed 
> ram, so the GC would need to run several times to bring that all up to gen 
> 3.
> Gettext would be even worse (if using hash-lookup), but shines when not 
> translated (will the exceptions get translated anyways?)

Any solution that actually loads everything into memory at startup is
horrible. We need a solution that uses memory mappable files.

-- Ben




More information about the Mono-devel-list mailing list