Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TUI grid population performance bump #41

Merged
merged 2 commits into from May 17, 2022
Merged

TUI grid population performance bump #41

merged 2 commits into from May 17, 2022

Conversation

AnonymouX47
Copy link
Owner

  • Resolves intensive performance drop while populating large image grids.
  • Drastically improves the performance of populating image grids in the TUI.
    • The display widget generated per render (while still populating the grid) is only for the cells that are not yet inluded in the GridListBox.
    • The SimpleListWalker instance of the GridListBox (its .body property) is now extended instead of replacing it's contents.

- Fix: Resolves intensive performance drop while populating large image grids.
- Add: Added `GridListBox._next_index`.
- Change: Replaced `GridListBox._grid_contents()` with `GridListBox._update_grid_contents()`.
- Change: Drastically improved the performance of populating image grids in the TUI.
  - The display widget generated per render (while still populating the grid) is only for the cells that are not yet inluded in the `GridListBox`.
  - The `SimpleListWalker` instance of the `GridListBox` (its `.body` property) is now extended instead of replacing it's contents.
@AnonymouX47 AnonymouX47 added enhancement New feature / Improvement suggestion or request tui Related to the image viewer's TUI (Not to be used anymore) fix Fixes a bug labels May 12, 2022
@AnonymouX47 AnonymouX47 added this to the 0.4.0 milestone May 12, 2022
@AnonymouX47 AnonymouX47 merged commit e411b57 into main May 17, 2022
@AnonymouX47 AnonymouX47 deleted the grid-population branch May 20, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature / Improvement suggestion or request fix Fixes a bug tui Related to the image viewer's TUI (Not to be used anymore)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant