[Python-Dev] Unicode charmap decoders slow (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sat Oct 15 00:22:37 CEST 2005


Walter Dörwald wrote:

Of course we can't accept Pyrex code in the Python core, so it would be great to rewrite the encoder as a patch to PyUnicodeEncodeCharmap(). This version must be able to cope with encoding tables that are random strings without crashing.

I don't think this will be necessary. I personally dislike the decoding tables, as I think a straight-forward trie will do better than a hashtable.

Regards, Martin



More information about the Python-Dev mailing list