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 |
||
---|---|---|
.. | ||
animation_world | ||
core_all | ||
cyclic_import | ||
hello_world | ||
hello_world_i18n | ||
hello_world_r2 | ||
injection | ||
todo | ||
todo_i18n | ||
todo_r2 | ||
util |