PyO3 / pyo3

Rust bindings for the Python interpreter
https://pyo3.rs
Other
11.47k stars 694 forks source link

Move GIL counting from GILPool to GILGuard #4188

Closed alex closed 1 month ago

alex commented 1 month ago

With this change, https://github.com/PyO3/pyo3/pull/4181 should become trivial

codspeed-hq[bot] commented 1 month ago

CodSpeed Performance Report

Merging #4188 will improve performances by 10.22%

Comparing alex:gil-counting (d446db7) with main (88f2f6f)

Summary

⚡ 1 improvements ✅ 67 untouched benchmarks

Benchmarks breakdown

Benchmark main alex:gil-counting Change
ordered_dunder_methods 4 µs 3.6 µs +10.22%
alex commented 1 month ago

woo. if this merges before I go to bed, I'll rebase https://github.com/PyO3/pyo3/pull/4181