Skip to content

Commit

Permalink
remove redundant hot.clear() statements. increases performance and pr…
Browse files Browse the repository at this point in the history
…events 'afterChange' to be triggered too frequently on large dataset loads.
  • Loading branch information
kennethbruskiewicz committed Aug 21, 2024
1 parent d7a9533 commit 0935c7f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/DataHarmonizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,11 @@ class DataHarmonizer {
if (container_class) {
let dataObjects = jsonData.Container[container_class];
list_data = this.loadDataObjects(dataObjects);
this.hot.clear();
this.hot.loadData(list_data);
}
} else {
// assume tabular data if not a JSON datatype
list_data = this.loadSpreadsheetData(contentBuffer.binary);
this.hot.clear();
this.hot.loadData(list_data);
}
// this.hot.render(list_data);
Expand Down

0 comments on commit 0935c7f

Please sign in to comment.