gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Long standing branch with lots of merges from main slows down app

Open BenedictNaebers opened this issue 1 month ago • 2 comments

Ive been working on the same Branch/feature for a longer time. in that time ive regularly pulled in changes from the main branch via a merge. When looking at the branch Gitbutler tells me its 6.8k added lines (it should be just around 1k), it also lists all changed files from the merge commits. Not only does is this confusing/annoying when wanting to look at the changed files - it also slows down the app massivly. Switching between the tabs (codegen, workspace etc) takes 5 to 10 seconds.

Image Image Image

Switching between tabs (especially opening the codegen tab) sometimes also gives this error https://svelte.dev/e/effect_update_depth_exceeded

BenedictNaebers avatar Oct 27 '25 14:10 BenedictNaebers

Thanks a lot for reporting!

Is this repository something you'd be able to share so I can reproduce the discrepancy between the branch list and the actual branch detail locally?

The https://svelte.dev/e/effect_update_depth_exceeded probably tells us something about the UI being overwhelmed, and maybe a reactivity bug, but my hope would be that it won't run into performance issues if it doesn't have to show ~300 commits.

Thanks again.

Byron avatar Oct 28 '25 04:10 Byron

Sadly i cant share the repository. To me the expected beahviour would be that any branch gets compared to the workspace target - it doenst need to show merge commits from before the branch was even created.

One thing i forgot to mention was that I kept this specific branch local. I did push it to the repo just now and the behaviour changes quite a bit. I dont see the 6k changed lines anymore and the app is significantly faster.

this is the workspace view Image

Image

BenedictNaebers avatar Oct 29 '25 07:10 BenedictNaebers