Commit 46140c9
gh-87613: Use the AC vectorcall for float
Move float.__new__ to AC vectorcall dropping the hand-written.
Running microbenchmark from the original add (`pyperf timeit "float(0)"`
in gh-86039) shows no significant performance change.
The generated name matches the hand-written name so the tp_vectorcall
slot is unchanged.
Update the vectorcall slot-parity test to include float.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a000129 commit 46140c9
3 files changed
Lines changed: 34 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5597 | 5597 | | |
5598 | 5598 | | |
5599 | 5599 | | |
5600 | | - | |
| 5600 | + | |
| 5601 | + | |
5601 | 5602 | | |
5602 | 5603 | | |
5603 | 5604 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1555 | 1555 | | |
1556 | 1556 | | |
1557 | 1557 | | |
| 1558 | + | |
1558 | 1559 | | |
1559 | 1560 | | |
1560 | 1561 | | |
| |||
1565 | 1566 | | |
1566 | 1567 | | |
1567 | 1568 | | |
1568 | | - | |
| 1569 | + | |
1569 | 1570 | | |
1570 | 1571 | | |
1571 | 1572 | | |
| |||
1609 | 1610 | | |
1610 | 1611 | | |
1611 | 1612 | | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
1628 | | - | |
1629 | 1613 | | |
1630 | 1614 | | |
1631 | 1615 | | |
| |||
0 commit comments