GH-92123: Move _elementtree heap types to module state#101187
GH-92123: Move _elementtree heap types to module state#101187erlend-aasland merged 28 commits intopython:mainfrom
Conversation
Pass state as an argument to Element_CheckExact()
Pass state as an argument to Element_Check()
Pass state as an argument to TreeBuilder_CheckExact()
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
|
Thanks for the reviews, Kumar and Oleg! For the path forward, there are two options: either pass state as a parameter, or store it in the type structs. I've created draft PRs for the two alternatives. Of course, a third path is a combination of both. |
Both variants ultimately call If so, we need an informed decision by benchmarking some |
|
|
I ran the pyperformance |
|
It won't matter as expected as most of the time as long as there isn't much stack spilling the performance should be identical. |
Uh oh!
There was an error while loading. Please reload this page.