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

[git] Update references changed on the remote repo only #853

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

sduenas
Copy link
Member

@sduenas sduenas commented Dec 3, 2024

When repositories are synched, the backend needs to update the local references to the ones set on the remote repository. The backend processed all the references, including those up to date. This made the synchronization very slow.

With this commit, only the references that were updated on the remote repository will be modified locally. We have improved the performance by 2. Repositories are in sync two or more times than before.

Performance data using https://github.com/eclipse-platform/eclipse.platform.releng.buildtools.git, when the repository hasn't been updated.

  • Before this patch
time perceval git https://github.com/eclipse-platform/eclipse.platform.releng.buildtools.git --latest-items

real	0m5,380s
user	0m1,802s
sys	0m2,000s
  • Using this patch
time perceval git https://github.com/eclipse-platform/eclipse.platform.releng.buildtools.git --latest-items

real	0m2,551s
user	0m0,823s
sys	0m0,115s

When repositories are synched, the backend needs to update
the local references to the ones set on the remote repository.
The backend processed all the references, including those
up to date. This made the synchronization very slow.

With this commit, only the references that were updated on
the remote repository will be modified locally. We have
improved the performance by 2. Repositories are in sync
two or more times than before.

Signed-off-by: Santiago Dueñas <[email protected]>
Copy link
Contributor

@jjmerchante jjmerchante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjmerchante jjmerchante merged commit 02512e2 into chaoss:master Dec 4, 2024
6 checks passed
@sduenas sduenas deleted the update-git-refs branch December 11, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Delivered
Development

Successfully merging this pull request may close these issues.

2 participants