Repository navigation
Refactor/element prop transformation performance - #855
Conversation
Release 2.17.0
Release 2.17.1
…bjects from direct updates.
…bject creation and using direct assignment instead.
…w object literal.
Test Results: ✅ PASSEDPassed: 1,885 · Failed: 0 · Total: 1,885 assertions View workflow run · 2026-12-02 09:04:42 UTC |
|
Profiler stats for “element.populate”, using create-element benchmark to stress the element’s populate method, and following are the results between dev and candidate, Base (dev) Candidate (working tree) Improvement (base -> candidate): |
|
Profiler stats for “element.set” using computed-binding-updates benchmark to stress the element’s set function, Base (dev) Candidate (working tree) Improvement (base -> candidate): |
The implementation of the props transformer in element.js was not optimal because it was creating more (temporary) objects than needed.
This refactor addresses that and should lead to less memory usage and higher performance (exact numbers tbc)