Commit 2034abd
[XLA:Python] Switch C++ jit dispatch path to use PEP 590 vectorcalls.
vectorcalls were introduced in Python 3.8, and now that we have dropped Python 3.7 there's no downside to using them.
```
name old cpu/op new cpu/op delta
jit_simple 3.28µs ±28% 2.94µs ± 2% -10.63% (p=0.027 n=10+8)
name old time/op new time/op delta
jit_simple 3.29µs ±28% 2.94µs ± 2% -10.62% (p=0.027 n=10+8)
```
Treat the benchmark with a grain of salt: when benchmarking in the 2-3us regime my workstation VM is a bit noisy.
PiperOrigin-RevId: 4935929591 parent 708cbb0 commit 2034abd
5 files changed
+292
-129
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
| |||
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
| 553 | + | |
552 | 554 | | |
553 | 555 | | |
554 | 556 | | |
| |||
0 commit comments