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
system.time(xml_find_all(xml, "//SYMBOL_FUNCTION_CALL/parent::expr"))
# user system elapsed # 2.02 0.00 2.02
system.time(xml_find_all(xml, "//SYMBOL_FUNCTION_CALL/parent::expr/parent::expr"))
# user system elapsed # 3.903 0.000 3.904
system.time(xml_find_all(xml, "//SYMBOL_FUNCTION_CALL/parent::*"))
# user system elapsed # 1.989 0.000 1.989
system.time(xml_find_all(xml, "//SYMBOL_FUNCTION_CALL/parent::*/parent::*"))
# user system elapsed # 3.877 0.000 3.877
If we know the type of the parent node (or don't care about it),
parent::*
is faster thanparent::expr
:Here is comparison data for
Originally posted by @AshesITR in #2496 (comment)
The text was updated successfully, but these errors were encountered: