[issue30277] Speeds up compiling cases-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7186cc29be352bed6f1110873283d073fd0643e4 by Serhiy Storchaka in branch 'master': bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and _sre.unicode_tolower(). (#1468) https://github.com/python/cpython/commit/7186cc29be352bed6f1110873

[issue30277] Speeds up compiling cases-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1567 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30277] Speeds up compiling cases-insensitive regular expressions

2017-05-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Currently _sre.getlower() takes two arguments. Depending on the bits set in the second argument it uses one of three algorithms for determining the lower case of the character -- Unicode, ASCII-only, and locale-depended. After resolving issue30215 _sre.get