Author serhiy.storchaka
Recipients SilentGhost, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-29.04:56:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475124986.0.0.533116135841.issue28293@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-29 04:56:26serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, SilentGhost, xiang.zhang
2016-09-29 04:56:26serhiy.storchakasetmessageid: <1475124986.0.0.533116135841.issue28293@psf.upfronthosting.co.za>
2016-09-29 04:56:25serhiy.storchakalinkissue28293 messages
2016-09-29 04:56:25serhiy.storchakacreate