Closed aalin closed 1 year ago
Add the famous two way diff used in many other VDOM implementations.
basic benchmarks with random orders:
500 inserts: 14.782000064849854 500 shuffle: 71.27499997615814 shuffle and remove 300: 19.103000044822693
500 inserts: 7.65500009059906 500 shuffle: 18.229999899864197 shuffle and remove 300: 4.972000002861023
Add the famous two way diff used in many other VDOM implementations.
basic benchmarks with random orders:
old implementation (ms)
500 inserts: 14.782000064849854 500 shuffle: 71.27499997615814 shuffle and remove 300: 19.103000044822693
new implementation (ms)
500 inserts: 7.65500009059906 500 shuffle: 18.229999899864197 shuffle and remove 300: 4.972000002861023