mirror of
https://github.com/python/cpython.git
synced 2026-07-25 11:22:45 -04:00
5717518fb3
* Document reusing a thread state across repeated foreign-thread calls Add a subsection under "Non-Python created threads" explaining the performance cost of creating/destroying a PyThreadState on every Ensure/Release cycle and showing how to keep one alive for the thread's lifetime instead. * add a comma Co-authored-by: Peter Bierma <zintensitydev@gmail.com> --------- Co-authored-by: Peter Bierma <zintensitydev@gmail.com>