Uh oh!
There was an error while loading. Please reload this page.
gh-136681: make argsbuf static to speedup processing positional arguments with AC - #136732
gh-136681: make argsbuf static to speedup processing positional arguments with AC#136732skirpichev wants to merge 7 commits into
Conversation
579822c to
c88f2bfComparec88f2bf to
5463883Compareskirpichev
commented
Jul 17, 2025
benchmark: #136681 (comment) |
ZeroIntensity
commented
Jul 17, 2025
Won't this break when called concurrently? |
This comment was marked as resolved.
This comment was marked as resolved.
skirpichev
commented
Jul 29, 2025
Hmm, @ZeroIntensity, test seems fixed with using combined |
Hm, you could try it and see what the test suite says. To my knowledge, thread local lookups are generally slower, so we might not see a speedup. |
Well, CI tests pass, but that might be just an accident.
Here my quick measurements for default configure arguments on Linux box. (Free-threading build might change the picture.) Micro-benchmarks are for math.fmin(): when only positional arguments are allowed (as in the main) vs positional-or-keyword allowed. In the main:
With the patch:
Benchmark hidden because not significant (1): fmin(1.0, 2.0) x 2 times Detailsimportpyperffrommathimportfmindeff(n):
for_inrange(n):
fmin(1.0, 2.0)
runner=pyperf.Runner()
runner.bench_func('fmin(1.0, 2.0)', fmin, 1.0, 2.0)
fornin [2, 10, 100]:
s=f'fmin(1.0, 2.0) x {n:3} times'runner.bench_func(s, f, n) |
Uh oh!
There was an error while loading. Please reload this page.