This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cgohlke
Recipients Dragoljub, cgohlke, vstinner, xtreak
Date 2018-11-13.01:45:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542073532.69.0.788709270274.issue35195@psf.upfronthosting.co.za>
In-reply-to
Content
I attached a minimal C extension module that can be used to demonstrate the performance degradation from Python 3.7.0a3 to 3.7.0a4.

Build the extension with `py setup.py build_ext --inplace`, then run the following code on Python 3.7.0a3 to 3.7.0a4:

```
import time
from test_isdigit import test_isdigit

start_time = time.time()
test_isdigit()
print(time.time() - start_time)
```

On my Windows 10 Pro WS system, the timings are:

Python 3.7.0a3: ~0.0156
Python 3.7.0a4: ~0.3281


I would expect that other locale aware functions in the UCRT are also affected but I have not tested that.
History
Date User Action Args
2018-11-13 01:45:32cgohlkesetrecipients: + cgohlke, vstinner, xtreak, Dragoljub
2018-11-13 01:45:32cgohlkesetmessageid: <1542073532.69.0.788709270274.issue35195@psf.upfronthosting.co.za>
2018-11-13 01:45:32cgohlkelinkissue35195 messages
2018-11-13 01:45:32cgohlkecreate