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
A common construct in the code is to check the type of node from the parser, such as StemListNode and do processing using instanceof on the class. This means the code is getting ever more blocks of conditionals based on instanceof. A few of thewse are no problem, but lots of them will slow down code. each node should have an integer type associated with it and switch statements should handle these cases, not blocks of conditionals.
This was initially just s style issue, but as these proliferate, it is becoming a performance issue.
The text was updated successfully, but these errors were encountered:
A common construct in the code is to check the type of node from the parser, such as StemListNode and do processing using instanceof on the class. This means the code is getting ever more blocks of conditionals based on instanceof. A few of thewse are no problem, but lots of them will slow down code. each node should have an integer type associated with it and switch statements should handle these cases, not blocks of conditionals.
This was initially just s style issue, but as these proliferate, it is becoming a performance issue.
The text was updated successfully, but these errors were encountered: