[issue39146] too much memory consumption in re.compile unicode

Zhipeng Xie report at bugs.python.org
Tue Dec 31 04:53:35 EST 2019


Zhipeng Xie <775350901 at qq.com> added the comment:

> but range() was here before ebd48b4f650d.

before ebd48b4f650d, _optimize_unicode use xrange. So python2.7.8 is ok and python2.7.9 consume much memory in my test case.

> Obviously there are other causes of the difference between 2.7 and 3.x.

Maybe it is because my python was compiled with --enable-unicode=ucs4.

----------

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


More information about the Python-bugs-list mailing list