Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G git-backup
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • git-backup
  • Repository

Switch branch/tag
  • git-backup
  • testdata
  • 3
  • incomplete-send-pack.git
  • info
  • exclude
Find file BlameHistoryPermalink
  • Kirill Smelkov's avatar
    pull: Switch from porcelain `git fetch` to plumbing `git fetch-pack` + friends · 899103bf
    Kirill Smelkov authored Jun 12, 2018
    On lab.nexedi.com `git-backup pull` became slow, and most of the slowness
    was tracked down to the following:
    
    `git fetch`, before fetching data from remote repository, first checks
    whether it already locally has all the objects remote advertises. This
    boils down to running
    
    	echo $remote_tips | git rev-list --quiet --objects --stdin --not --all
    
    and checking whether it succeeds or not:
    
    	https://git.kernel.org/pub/scm/git/git.git/commit/?h=4191c35671
    	https://git.kernel.org/pub/scm/git/git.git/tree/builtin/fetch.c?h=v2.18.0-rc1-1-g6f333ff2fb#n925
    	https://git.kernel.org/pub/scm/git/git.git/tree/connected.c?h=v2.18.0-rc1-1-g6f333ff2fb#n8
    
    The "--not --all" in the query means that objects should be not
    reachable from all locally existing refs and is implemented by linearly
    scanning from tip of those existing refs and marking objects reachable
    from there as "do not print".
    
    In case of git-backup, where we have mostly master which ...
    899103bf

Replace exclude

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7