You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We embed PyInternedStrings and PyLazyObjects into the AST, but accessing them still does a NULL check and IncRef each time.
Instead, we could keep a list of all the lazy objects used, and a bool indicating whether or not they have all been checked, and check this once at the start of the DSL block. So the first time, all these objects are initialised, and thereafter we can just extract the pointer value directly.
The text was updated successfully, but these errors were encountered:
We embed
PyInternedString
s andPyLazyObject
s into the AST, but accessing them still does a NULL check and IncRef each time.Instead, we could keep a list of all the lazy objects used, and a bool indicating whether or not they have all been checked, and check this once at the start of the DSL block. So the first time, all these objects are initialised, and thereafter we can just extract the pointer value directly.
The text was updated successfully, but these errors were encountered: