[issue31484] Cache single-character strings outside of the Latin1 range

Serhiy Storchaka report at bugs.python.org
Fri Sep 15 18:32:09 EDT 2017


Serhiy Storchaka added the comment:

Sorry for using the word hieroglyphs for Chinese characters. I didn't know how they are named in English.

Limiting the caching to U+31BF doesn't have effect. But increasing the cache size to 2 x 512 slots makes the iteration of Chinese text faster by around 20%. Following size duplications increase the speed by additional 15-25%. The limit is 75-80%. This doesn't affect Greek.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31484>
_______________________________________


More information about the Python-bugs-list mailing list