[wxPython-users] localization, is it slow ?

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun Dec 2 03:50:22 PST 2007


On Sun, Dec 02, 2007 at 12:40:03PM +0100, Stef Mientki wrote:

> Peter Damoc wrote:
>> why should it be incredibly slow?
> As most of my strings are help texts,
> which are often quit long (say 10 .. 20 full lines),
> I would expect that searching for keys that are 10*80 characters long,
> will be quit slow.
> Although I don't know anything of the inside of Python,
> I can't image that a lookup of a 800 character string in a dictionary is 
> fast,
> but maybe I'm missing some essential insight.

gettext indexing isn't really by text at *runtime*.

In the process .po files are compiled into a binary form
which contains provisions for fast lookup.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




More information about the wxpython-users mailing list