We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6e8e9 commit 763f99aCopy full SHA for 763f99a
frameworks/keyed/s2/src/bench.js
@@ -75,6 +75,15 @@ var id = 0
75
function create (label, number) {
76
return function () {
77
bench(label, function () {
78
+ // Technical note: the keyed behavior for array replacement can be forced
79
+ // by resetting it first. Removing this would default to non-keyed behavior.
80
+ //
81
+ // This *could* be the default behavior in the library itself, but would be
82
+ // a de-optimization for the common use case of replacing an array with another.
83
+ // Even if the default behavior was keyed, non-keyed could still be forced by
84
+ // mutating objects in the array.
85
+ proxy.rows = null
86
+
87
proxy.rows = buildData(number)
88
})
89
}
0 commit comments