-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize tag stream generation during git fetch/pull
Summary: When fetching the stream of annotated tag objects, we get all of them (unless a few were explicitly requested) in case of git clone. In case of git pull/fetch we are supposed to: - Fetch all the tags that point to anyone of the commits in the stream of commits included in the packfile - Fetch all the tags that correspond to the `want oid` requirements received from the client Turns out computing this set is more expensive then just sending all the available tags and it only adds a minor overhead in terms of size (few KBs or couple MBs at most) which is why this diff updates the tag stream fetching logic to fetch all annotated tags. However this decision is not set in stone, we can always go back to the old version if we figure out that works better. Differential Revision: D54631092 fbshipit-source-id: e98372cba8d0cc0ad067342e622b99fc44b9d555
- Loading branch information
1 parent
02a1c63
commit 555e33f
Showing
1 changed file
with
11 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters