python3 Unicode is slow

John Machin sjmachin at lexicon.net
Sun Oct 25 14:11:31 CET 2009


On Oct 25, 11:12 pm, Dale Gerdemann <dale.gerdem... at googlemail.com>
wrote:
> I've written simple code in 2.6 and 3.0 to read every charcter of a
> set of files and print out some information for each of these
> characters. I tested each program on a large Cyrillic/Latin text. The
> result was that the 2.6 version was about 5x faster.

3.0? Nowadays nobody wants to know about benchmarks of 3.0. Much of
the new 3.X file I/O stuff was written in Python. It has since been
rewritten in C. In general AFAICT there is no good reason to be using
3.0. Consider updating to 3.1.1.



More information about the Python-list mailing list