Skip to content

⚡️ implement custom scrollable widget#173

Merged
friedow merged 8 commits intomainfrom
feat/paginated-output
Jul 29, 2024
Merged

⚡️ implement custom scrollable widget#173
friedow merged 8 commits intomainfrom
feat/paginated-output

Conversation

@friedow
Copy link
Copy Markdown
Owner

@friedow friedow commented Jul 27, 2024

Since the iced scrollable widget renders all entries passed to it, we're experiencing degraded performance when plugins pass many entries to render. This is noticeable when using plugins like brave or firefox history with large history lists.

This PR removes the iced scrollable widget and instead creates a list of 10 enties which behave like a scrollable. This way we really only paint the 10 entries which are in the current viewport.

This fixes #157.

@friedow friedow self-assigned this Jul 27, 2024
Copy link
Copy Markdown
Collaborator

@a-kenji a-kenji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested. Seems to work well.

There is no scroll bar anymore, I guess that is intentional?

@friedow
Copy link
Copy Markdown
Owner Author

friedow commented Jul 29, 2024

Yep, scrollbar is not displayed intentionally. I think thats fine for now.

@friedow friedow merged commit 0889d01 into main Jul 29, 2024
@friedow friedow deleted the feat/paginated-output branch July 29, 2024 19:51
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.

firefox and brave plugins possibly show too many entries

2 participants