M.-A. Lemburg wrote: > One interesting difference I found while testing on Windows > vs. Linux is that the StringMappings test have quite a different > run-time on both systems: around 2500ms on Windows vs. 590ms > on Linux (on Python 2.4). UnicodeMappings doesn't show such > a signficant difference. > > Perhaps the sprint changed this ?!
nope. but stringbench revealed the same thing, of course. the difference is most likely due to an inefficient implementation of locale-aware character lookups in Visual C (MSVC supports passing wide chars, but I don't think gcc bothers to do that; afaik, it's not part of the C standard). solving this is straightforward (let the locale module set a global flag if Python runs under a non-C locale, and use a built-in table as long as that flag isn't set), but I haven't gotten around to deal with that yet. </F> _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com