awaescher / RepoZ

👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements
MIT License
1.01k stars 91 forks source link

Fixes #151 by buffering the refresh call on the collection view. #152

Closed lennoncork closed 3 years ago

lennoncork commented 3 years ago

TLDR; Not sure how good of a solution this is, maybe a bit hackish but did seem to make the main view more responsive on my machine.

Fixes #151 by buffering the refresh call on the collection view. This allow multiple text updates to occur in series and introduces a small delay between text update and refresh. Uses a custom sort behavior to prevent reflection and adds a virtualizing stack panel, although not sure these changes have a significant impact to the refresh.

awaescher commented 3 years ago

Hey thanks for this. I'll have a look at it later

awaescher commented 3 years ago

I tested it and it worked flawlessly. Very much appreciated, thank you Lennon.

lennoncork commented 3 years ago

No worries, was fun. Great project, hopefully I get some more time to contribute.