[wxPython-users] localization, is it slow ?

Peter Damoc pdamoc at gmail.com
Sun Dec 2 05:03:16 PST 2007


micro is 10 to the power -6... mili (1/1000) seconds sounds more plausible

On Dec 2, 2007 4:53 AM, Frank Niessink <frank at niessink.com> wrote:

> Hi Stef,
>
> 2007/12/2, Stef Mientki <s.mientki at ru.nl>:
> > 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.
>
> Actually, Python dictionaries are *very* fast. See attached script.
> Looking up values in a dictionary of 10000 strings, with keys and
> values that have a random length between 3 and 1000 characters, takes
> 0.3 microseconds per lookup on my computer. (I hope I did the math
> right ;-)
>
> Cheers, Frank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>



-- =

There is NO FATE, we are the creators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200712=
02/d20bd9b3/attachment.htm


More information about the wxpython-users mailing list