| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
|
I'm especially interested to know what @pganssle thinks. |
Sorry, something went wrong.
|
I have made this the same as #118357 except that this PR caches capi-pointers in the global C array rather than PyInterpreterState. One subinterpreter can use the global variable for now, so PyCapsule_Import will be called when multiple subinterpreters use the _datetime module at the same time. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Allow sub-interpreters to access their C-API by calling PyCapsule_Import function every time. Performance could be recovered by client's local caching. The _zoneinfo extension could also improve a few C-API accesses, if necessary.
UPDATE: Tuned for a sub-interpreter: #117413 (comment)
cc @erlend-aasland @ericsnowcurrently