Author serhiy.storchaka
Recipients barry, r.david.murray, rhettinger, serhiy.storchaka
Date 2017-09-26.05:07:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506402424.97.0.704719570214.issue31580@psf.upfronthosting.co.za>
In-reply-to
Content
lru_cache() is not used for reasons. The patch makes using cached patterns slower by adding an overhead of 4 additional checks. It makes resolving attributes of a deferred patterns slower. All this slows down a straight call to re.search(pattern, s).

Errors in regular expression now raised only on first use of the pattern. This is a drawback from educational and debugging points of view.

The patch also breaks warnings emitted during compiling regular expressions. Now they report wrong source line and use wrong line for caching in case of -Wonce.
History
Date User Action Args
2017-09-26 05:07:05serhiy.storchakasetrecipients: + serhiy.storchaka, barry, rhettinger, r.david.murray
2017-09-26 05:07:04serhiy.storchakasetmessageid: <1506402424.97.0.704719570214.issue31580@psf.upfronthosting.co.za>
2017-09-26 05:07:04serhiy.storchakalinkissue31580 messages
2017-09-26 05:07:04serhiy.storchakacreate