It is already done for nesting_limit. Each of the options should be transformed into C objects during init so that _traverse_node() uses as few Python objects as possible.
The gumbocy.html file generated after make cythonize is useful for seeing which lines use Python objects.
What would be the most efficient C type for lookups, to replace the Python sets like attributes_whitelist?
It is already done for
nesting_limit. Each of the options should be transformed into C objects during init so that_traverse_node()uses as few Python objects as possible.The
gumbocy.htmlfile generated aftermake cythonizeis useful for seeing which lines use Python objects.What would be the most efficient C type for lookups, to replace the Python sets like
attributes_whitelist?