Message303003
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. |
|
Date |
User |
Action |
Args |
2017-09-26 05:07:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, rhettinger, r.david.murray |
2017-09-26 05:07:04 | serhiy.storchaka | set | messageid: <1506402424.97.0.704719570214.issue31580@psf.upfronthosting.co.za> |
2017-09-26 05:07:04 | serhiy.storchaka | link | issue31580 messages |
2017-09-26 05:07:04 | serhiy.storchaka | create | |
|