Antoine Pitrou added the comment: Judging by the numbers, this optimization does not sound worth the hassle. It is quite rare to iterate over all characters in a long text while doing so little work with them that the cost of iteration is significant.
By the way: > Sorry for using the word hieroglyphs for Chinese characters. I didn't know > how they are named in English. I think the word you were looking for is "ideogram". ---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31484> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com