Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-37942: Improve argument clinic float converter #15470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 25, 2019

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Aug 24, 2019

@rhettinger rhettinger added type-bug An unexpected behavior, bug, or error performance Performance or resource usage needs backport to 3.8 labels Aug 24, 2019
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Do you want to add the same optimization in getargs.c?

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
@rhettinger
Copy link
Contributor Author

Serhiy, do you know how to regenerate or edit 'Lib/test/clinic.test' ?

@rhettinger rhettinger requested a review from tiran as a code owner August 25, 2019 01:32
@rhettinger rhettinger merged commit aef9ad8 into python:master Aug 25, 2019
@rhettinger rhettinger deleted the arg_clinic_float_converter branch August 25, 2019 02:10
@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @rhettinger, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker aef9ad82f7f667cd001a7112d3bc636e918626f7 3.8

rhettinger added a commit to rhettinger/cpython that referenced this pull request Aug 25, 2019
@bedevere-bot
Copy link

GH-15480 is a backport of this pull request to the 3.8 branch.

@serhiy-storchaka
Copy link
Member

Serhiy, do you know how to regenerate or edit 'Lib/test/clinic.test' ?

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,}

lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants