Re: python3 Unicode is slow

2009-10-25 Thread John Machin
On Oct 25, 11:12 pm, Dale Gerdemann 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 fa

python3 Unicode is slow

2009-10-25 Thread Dale Gerdemann
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. Here are the two programs: #!/usr/bin/env pyt