lui
lui copied to clipboard
Compile diffing functions
trafficstars
Only change detection is currently compiled.
To detect modified props, Object.keys and a loop is used — on each run.
Instead, the modified props should be detected by compiled code with the property names hardcoded into it.
For dom attributes, we could skip creating a copy but diff with the dom directly.