git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Should object repacking only update server-info for packs instead of doing it for refs?
@ 2024-10-14 20:07 Martin Fick
  2024-10-14 20:33 ` Luca Milanesio
  0 siblings, 1 reply; 7+ messages in thread
From: Martin Fick @ 2024-10-14 20:07 UTC (permalink / raw)
  To: git@vger.kernel.org

I have been experimenting with trying to run git geometric repacking after every push on our servers and have noticed that even a NOOP geometric repack takes approximately 30s on one of my large repositories. Further investigation determined that it was the update-server-info call that was taking that 30s, so running repacking with the -n instead only takes 6ms in this case! I dug a bit deeper and found that it was the update_info_refs() call that takes all the time. This seemed a bit off to me. Yes, it makes sense that would be slow, I have almost 2Mrefs, but I had to ask myself, why is this being done from git repack? It seems counterintuitive that an operation designed to repack objects would be performing maintenance of any sort on refs? Should this be improved somehow? Should there be a -packs and a -refs switch to git update-server-info, and should git repack call it with -packs? Should git pack-refs be calling git update-server-info with -refs instead?

Thanks,

-Martin


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-15 13:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14 20:07 Should object repacking only update server-info for packs instead of doing it for refs? Martin Fick
2024-10-14 20:33 ` Luca Milanesio
2024-10-14 21:25   ` Taylor Blau
2024-10-15 11:02     ` Patrick Steinhardt
2024-10-15 11:52       ` Luca Milanesio
2024-10-15 12:14         ` Patrick Steinhardt
2024-10-15 13:56           ` Taylor Blau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).