Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further lower the Git auto gc threshold #260

Merged
merged 1 commit into from
May 25, 2024

Conversation

amberin
Copy link
Member

@amberin amberin commented May 20, 2024

It seems that JGit on Android is significantly slowed down by even small amounts of loose objects. I have long been aware that syncing Git repos tends to be snappy right after cloning, but then take longer and longer. I recently performed "git gc" on my main Orgzly repo, which was syncing very slowly. Its size went down from 9 MB to 3 MB, which may sound little, but the sync time dropped by almost 90%!

See https://stackoverflow.com/a/16342938 for an explanation of how the threshold value works.

It seems that JGit on Android is significantly slowed down by even small
amounts of loose objects. I have long been aware that syncing Git repos
tends to be snappy right after cloning, but then take longer and longer.
I recently performed "git gc" on my main Orgzly repo, which was syncing
very slowly. Its size went down from 9 MB to 3 MB, which may sound
little, but the sync time dropped by almost 90%!

See https://stackoverflow.com/a/16342938 for an explanation of how the
threshold value works.
@amberin amberin linked an issue May 20, 2024 that may be closed by this pull request
@amberin amberin merged commit 876ff6e into orgzly-revived:master May 25, 2024
4 checks passed
@amberin amberin deleted the git-auto-gc branch May 25, 2024 06:38
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.

Garbage collection may not be performed often enough
1 participant