bpo-37358: Use vectorcall for functools.partial#14284
Conversation
bc4f23c to
3c19903
Compare
3c19903 to
fc44c0e
Compare
Codecov Report
@@ Coverage Diff @@
## master #14284 +/- ##
==========================================
- Coverage 82.75% 82.75% -0.01%
==========================================
Files 1840 1840
Lines 560791 560780 -11
Branches 41431 41431
==========================================
- Hits 464110 464099 -11
- Misses 87598 87602 +4
+ Partials 9083 9079 -4
Continue to review full report at Codecov.
|
|
Is |
To be honest, I have no idea. I just noticed that this could be optimized, so I did it. The behaviour of Do you want me to remove that special case? |
That sounds like premature optimization.
If that is an actual use case for that, just make
Yes, unless there is a need for the complication. |
|
I tried 3 simple micro-benchmarks (without PGO):
So there is a clear performance improvement in all cases. |
|
Failed Travis CI build is due to |
|
Looks good! Thank you! |
|
@jdemeyer: Status check is done, and it's a success ✅ . |
https://bugs.python.org/issue37358