Skip to content
Snippets Groups Projects
Commit b53ef9ea authored by Hannes Siebenhandl's avatar Hannes Siebenhandl
Browse files

Only render what can be realistically displayed to users

`viewport` is unreasonably inefficient for our usecase when the IOTree grows, as it
decides what to display once it rendered to full `IOTree`.
Especially while scrolling, this inefficiency became apparent.

Unfortunately, brick doesn't have any builtin way to improve this, see https://github.com/jtdaugherty/brick/issues/264

We take `drawListElement` as an inspiration, and only render up to
`heightOfBox * 2` elements of the `IOTree`, including expanded tree
nodes.
This speeds up the view noticeably, giving the user a responsive experience.

In particular, we decouple rendering metadata computation from the actual rendering to decide which rows to render.
parent aec14456
No related branches found
No related tags found
1 merge request!48Only render what can be realistically displayed to users
Pipeline #89210 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment