| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Passing the state around as a parameter is one way to get rid of ET_STATE_GLOBAL. It results in a larger diff (more churn), but IMO it is an ok approach. Alternatively, we can store state as a member in the type contexts, which will result in a smaller diff. |
Sorry, something went wrong.
|
(I will rebase this onto main after #101187 has landed.) |
Sorry, something went wrong.
Pass state as arg to create_new_element()
Pass state as arg to deepcopy()
Pass state as arg to expat_set_error()
Pass state as arg to element_setstate_from_attributes()
Pass state as arg to create_elementiter()
Pass state as arg to treebuilder_extend_element_text_or_tail()
Pass state as arg to treebuilder_add_subelement()
Pass state as arg to element_add_subelement()
Pass state as arg to element_setstate_from_Python()
|
After this, the remaining parts are:
|
Sorry, something went wrong.
Up to you but I can review of all this in one go, they are relatively small changes. |
Sorry, something went wrong.
|
Side thought: sizeof(ElementObject) is 56 which rounds off to 64 for alignment so we can add a state pointer and the memory usage will be same. |
Sorry, something went wrong.
Yes; well observed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Complement to #101190