FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.42k stars 637 forks source link

Performance optimizations rebased #1461

Closed wmertens closed 3 years ago

wmertens commented 3 years ago

Rebase of #1277

Seems to work nicely :)

wmertens commented 3 years ago

@jung-kim Could you check if this rebase is correct? Feel free to copy this to your PR.

wmertens commented 3 years ago

@jung-kim it's a bunch faster, but when I'm switching branches, I see commits that shouldn't be there. Known issue or wrong rebase?

wmertens commented 3 years ago

I changed the render debounce to trailing and now it seems to work fine.

wmertens commented 3 years ago

@jung-kim It seems that the git api changes were already merged, so now it looks like it's mostly some optimizations on rendering. I'll add comments for the things I don't understand.

wmertens commented 3 years ago

Closing this, #1315 is much faster

wmertens commented 3 years ago

Maybe https://github.com/FredrikNoren/ungit/pull/1461/files#diff-461c9730b6ed38ffda38118a2064714a9402b291d9e33f2e35894a98d99de09fR188-R212 is useful, I don't know