bb53b6549c
Turns out that writing to global state is more expensive than writing to a property on an object. Slower: ```` let count = 0; function increment() { count++; } ``` Faster: ```` const state = { count: 0 }; function increment() { state.count++; } ``` This change moves all of the instruction state into a single state object. `noop_change_detection` benchmark Pre refactoring: 16.7 us Post refactoring: 14.523 us (-13.3%) PR Close #33093 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
OUTSTANDING_WORK.md | ||
base.css | ||
bundle.golden_symbols.json | ||
index.html | ||
index.ts | ||
todo.css | ||
todo_e2e_spec.ts |