bpo-37942: Improve argument clinic float converter#15470
Conversation
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM.
Do you want to add the same optimization in getargs.c?
Sorry, something went wrong.
Baseline timing: ./python.exe -m timeit -r11 -s 'from statistics import _normal_dist_inv_cdf as f' -s 't=0.75,0.0,1.0' 'f(*t)' 5000000 loops, best of 11: 61.1 nsec per loop Improved timing: ./python.exe -m timeit -r11 -s 'from statistics import _normal_dist_inv_cdf as f' -s 't=0.75,0.0,1.0' 'f(*t)' 5000000 loops, best of 11: 52.5 nsec per loop
|
Serhiy, do you know how to regenerate or edit 'Lib/test/clinic.test' ? |
Sorry, something went wrong.
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Sorry, something went wrong.
|
Sorry, @rhettinger, I could not cleanly backport this to |
Sorry, something went wrong.
) (cherry picked from commit aef9ad8)
I use the following line: mv Lib/test/clinic.test{,.c}; ./python Tools/clinic/clinic.py --force Lib/test/clinic.test.c; mv Lib/test/clinic.test{.c,} |
Sorry, something went wrong.
https://bugs.python.org/issue37942