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
Stop creating Owner Stacks if many have been created recently
Adding Owner Stacks in development adds some non-negligible performance overhead.
This is shared roughly equally between the work required for `captureOwnerStack` to work and tasks being visible in runtimes that support `console.createTask`.
We now stop this work after a some amount of elements were created. Though we do reset that limit occasionally so that one-off updates on not too large trees do get complete Owner Stacks.
Chances are that you probably don't need Owner Stacks on large, frequent updates.
Stopping after 10.000 elements caps a large update at 500ms where uncapped would've taken 3.000ms (see attached fixture).
I added separate, dynamic feature flags to control when we cut off and how frequent we reset so that Meta can experiment with different values.
0 commit comments