perf: es5 markChangesRecursively
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This patch only applies to `produce` calls that have a patch listener. - Removed the `diffKeys` function, which created 2 avoidable arrays. Now, the keys are diffed and processed in one pass. - For objects, the last loop over `proxy` has been removed. - Added fast paths for pre-existing keys when looking for added/removed object keys. - Avoid passing removed array values to `markChangesRecursively`. - Unwrap `state.assigned` as a local variable for fast access.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+31 added−35 removed
- other:+31 added−35 removed