~/talk

Specializing dynamic language C extensions using type information

Talkat SOAP 2024 · on Tuesday, 2024-06-25· [python]
links:none on file
slides:none on file

Introduces typed methods metadata for C extension functions so a runtime can call them with unboxed C types instead of boxing to PyObject, implemented as a PyPy prototype that reads a meth_typed flag and treats arguments as C long* (or other C types). A tight microbenchmark (a billion increments) drops from ~160s to ~2s (≈60×); change is opt-in, backward‑compatible, small (~60 lines), and integrates with Cython to auto-generate annotations.

AI-written summary · about

  1. 0:00Dynamic language C extensions
  2. 1:27Python C API limitations
  3. 3:38PiPie's C extension challenges
  4. 5:26C API argument parsing overhead
  5. 7:55Adding type info to C extensions
  6. 9:03Optimizing C calls with types
  7. 10:09Microbenchmark performance gains
  8. 11:31Impact on other Python runtimes
  9. 12:33Key takeaways and future work
  10. 13:58Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.