Skip to content

Simplify go-git optimization and reenable it#940

Merged
jtibshirani merged 1 commit intomainfrom
jtibs/go-git
Apr 11, 2025
Merged

Simplify go-git optimization and reenable it#940
jtibshirani merged 1 commit intomainfrom
jtibs/go-git

Conversation

@jtibshirani
Copy link
Contributor

This PR re-enables the go-git optimization that was disabled in #870 because it caused a huge bug. This PR removes the part of the optimization that was causing the bug, setting LargeObjectThreshold.

An alternative would be to track down the root cause of the bug in go-git, so that we could keep setting LargeObjectThreshold. However, I don't feel that's worth it as:

@jtibshirani jtibshirani requested review from a team and keegancsmith April 10, 2025 21:31
@jtibshirani jtibshirani merged commit 4f4dc4c into main Apr 11, 2025
9 checks passed
@jtibshirani jtibshirani deleted the jtibs/go-git branch April 11, 2025 15:40
abraverm pushed a commit to abraverm/zoekt that referenced this pull request Jan 15, 2026
This PR re-enables the go-git optimization that was disabled in sourcegraph#870 because it caused a huge bug. This PR removes the part of the optimization that was causing the bug, setting `LargeObjectThreshold`.

An alternative would be to track down the root cause of the bug in go-git, so that we could keep setting `LargeObjectThreshold`. However, I don't feel that's worth it as:
* The memory improvement from this change was pretty small (see sourcegraph#854)
* Eventually we want to move away from go-git towards a "vanilla" direct git usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants