Skip to content

Conversation

@kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Mar 26, 2022

Benchmark:

import pyperf

runner = pyperf.Runner()
runner.timeit(name="benchmark calls",
              stmt="a.decode();a.decode();a.decode();a.decode()",
              setup="a=b'a'*1000")

Result:

Mean +- std dev: [base] 2.16 us +- 0.12 us -> [patch] 1.68 us +- 0.06 us: 1.28x faster

It is the second largest specialization failure as per the stats.

https://bugs.python.org/issue47127

@kumaraditya303 kumaraditya303 changed the title specialization for fastcall with keywords for c functions bpo-47127: Specialize call for fastcall c functions with keywords Mar 26, 2022
@kumaraditya303 kumaraditya303 changed the title bpo-47127: Specialize call for fastcall c functions with keywords bpo-47127: Specialize calls for fastcall c functions with keywords Mar 26, 2022
@kumaraditya303 kumaraditya303 marked this pull request as ready for review March 26, 2022 12:22
Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants