Skip to content

[ENH] Data Table: Optimize performance#2905

Merged
markotoplak merged 3 commits intobiolab:masterfrom
ales-erjavec:owtable-selection
Feb 19, 2018
Merged

[ENH] Data Table: Optimize performance#2905
markotoplak merged 3 commits intobiolab:masterfrom
ales-erjavec:owtable-selection

Conversation

@ales-erjavec
Copy link
Contributor

Issue

Data Table is slow when it displays large a large table with large selection.

Description of changes
  • Avoid enumerating all QModenIndex's in the selection; use QItemSelectionRange's
  • Remove one proxying layer in favor of subclassing to minimize QModelIndex mappings.
  • Use Qt5 layout change hinting in TableModel.
Includes
  • Code changes
  • Tests
  • Documentation

@markotoplak
Copy link
Member

Fantastic! Had problems with selection speed some time ago and this pull request solves them.

Before, selecting all elements took 3 second for adult and 4 minutes for one of my data sets (ca 16000 rows and 1500 columns). Now is seems instantaneous.

@markotoplak markotoplak merged commit 5043829 into biolab:master Feb 19, 2018
@lanzagar lanzagar added this to the 3.11 milestone Feb 23, 2018
@ales-erjavec ales-erjavec deleted the owtable-selection branch February 23, 2018 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants