-
-
Notifications
You must be signed in to change notification settings - Fork 32k
GH-92123: Move _elementtree heap types to module state #101187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-92123: Move _elementtree heap types to module state #101187
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.