[issue37966] is_normalized is much slower than the standard's algorithm

2019-08-27 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15558 ___ Python tracker ___ _

[issue37966] is_normalized is much slower than the standard's algorithm

2019-08-27 Thread Greg Price
New submission from Greg Price : In 3.8 we add a new function `unicodedata.is_normalized`. The result is equivalent to `str == unicodedata.normalize(form, str)`, but the implementation uses a version of the "quick check" algorithm from UAX #15 as an optimization to try to avoid having to cop