odoo / o-spreadsheet

Other
193 stars 44 forks source link

[PERF] history: faster history at import #4727

Closed LucasLefevre closed 2 months ago

LucasLefevre commented 2 months ago

Description:

The history is sometimes used in plugin import methods: this.history.update(...)

There are 2 main reason to do that:

At import however, keeping track of the changes is useless. They are currently aggregated in the changes array, but never used.

This commit improves loading time of the large number data set by ~17%

Before: 1353ms After: 1116ms

(averages over 8 runs) Task: : 4083517

review checklist

robodoo commented 2 months ago

Pull request status dashboard

rrahir commented 2 months ago

very elegant :o

rrahir commented 2 months ago

@robodoo r+