Message277682
The re module now depends on the enum module, and the latter already depends on OrderedDict. Thus the patch doesn't introduce new dependency. Python implementation of OrderedDict doesn't override __getitem__ and therefore don't slow down the common case. I considered all this.
In contrary, Python implementation of lru_cache slows down the code (that is why using it was dropped in the past). But I did not object to this because re.sub() is less used than re.match() or re.search() and already is much slower. |
|
Date |
User |
Action |
Args |
2016-09-29 04:56:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, SilentGhost, xiang.zhang |
2016-09-29 04:56:26 | serhiy.storchaka | set | messageid: <1475124986.0.0.533116135841.issue28293@psf.upfronthosting.co.za> |
2016-09-29 04:56:25 | serhiy.storchaka | link | issue28293 messages |
2016-09-29 04:56:25 | serhiy.storchaka | create | |
|