There are several places where we don't have to call Object.keys(). In some stress tests, these can be called a lot, resulting in lots of overhead.
Remove 2 of these Object.keys() calls in the graph - when scheduling and unscheduling node destruction. Instead add a refCount counter that we manually keep in sync with the dependents count.
Description
There are several places where we don't have to call
Object.keys()
. In some stress tests, these can be called a lot, resulting in lots of overhead.Remove 2 of these
Object.keys()
calls in the graph - when scheduling and unscheduling node destruction. Instead add arefCount
counter that we manually keep in sync with the dependents count.