Questions about memory cost in Mini Program's setData

for example, my initial data is

initdata:{
    name: 1;
    name: 2;
    name: 3;
    name: 4;
    name: 5;
}
After

, the new data is

newdata:{
    name: 1;
    name: 2;
    name: 3;
    name: 4;
    name: 5;
    name: 6;
    name: 7;
    name: 8;
    name: 9;
    name: 10;
}

so, when I setData (newdata), does Mini Program automatically compare data, twice and then update only the next 5 new pieces of data, or directly replace initdata? with newdata?

Mar.21,2021

these prestigious ones will click the minus sign, which is a normal question.
I estimate that the principle is similar to that of react's setState

setState(state, callback) {
    let s = this.state;
    if (!this.prevState) this.prevState = extend({}, s);
    extend(s, typeof state==='function' ? state(s, this.props) : state);
    if (callback) this._renderCallbacks.push(callback);
    enqueueRender(this);  // enqueueRender
}
export function extend(obj, props) {
    for (let i in props) obj[i] = props[i];
    return obj;
}

never met

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb1153-2329.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb1153-2329.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?