Snabbdom upgrade
The following performance enhancements were made to the snabbdom backend:
- The call to
fromProps
has been omitted in favor of a nullarytraverseWithKey_
specially made for Maps - Subtle changes to the format of the code - where conditions are performed, etc.
You can see the difference between the shpadoinkle-latest-snabbdom
and shpadoinkle-latest-snabbdom-upgrade
benchmarks below:
Furthermore, the following potential performance enhancement was attempted, but proved to not provide speedup:
- Attempt to append children in bulk to a DocumentFragment, with the
append()
function - Attempt to append children individually to a DocumentFragment, with the
appendChild()
function
Neither provided speedup - you can see the benchmarks between shpadoinkle-latest-pardiff
and shpadoinkle-latest-pardiff-fragment
below:
Edited by Athan Clark