Skip to content

[RFC] ListBox performance alternative #724

@GeopJr

Description

@GeopJr

(I currently am dealing with COVID and my thoughts might be a bit incoherent)

I'm working on another app and since it's in early stages I am able to write widgets and views around ListView easily. The clear showstopper is accessibility. Unless I'm missing something, keyboard navigation can only navigate until the first child and then continues with the next row. (These have been mentioned before on the countless attempts at porting Tuba to ListViews).

So what if we just remove widgets at the top of the list when we reach a certain amount and re-add then when the user makes it to the top? Ex. The list has 40 posts, the user scrolls near the bottom, we remove 20 from the top, the user scrolls near the top, we add 10-20 back

This won't benefit from all the performance advantages of ListView (like re-using widgets) but it will reduce ram usage and general slowness significantly as both images and widgets will be destroyed.

One concern is keeping the scrollbar / view at the same position during the list changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance related issuerfcA request for comments

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions