Re: [PATCH v3 14/14] commit-graph: build graph from starting commits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 8, 2018 at 9:37 PM, Derrick Stolee <stolee@xxxxxxxxx> wrote:
> Teach git-commit-graph to read commits from stdin when the
> --stdin-commits flag is specified. Commits reachable from these
> commits are added to the graph. This is a much faster way to construct
> the graph than inspecting all packed objects, but is restricted to
> known tips.
>
> For the Linux repository, 700,000+ commits were added to the graph
> file starting from 'master' in 7-9 seconds, depending on the number
> of packfiles in the repo (1, 24, or 120).

It seems something went wrong with '--stdin-commits' in v3, look:

  ~/src/git (commit-graph-v2 %)$ time { git rev-parse HEAD | ./git
commit-graph --write --update-head --stdin-commits ; }
  ee3223fe116bf7031a6c1ad6d41e0456beefa754

  real  0m1.199s
  user  0m1.123s
  sys   0m0.024s

  ~/src/git (commit-graph-v3 %)$ time { git rev-parse HEAD | ./git
commit-graph write --update-head --stdin-commits ; }
  ee3223fe116bf7031a6c1ad6d41e0456beefa754

  real  0m30.766s
  user  0m29.120s
  sys   0m0.546s



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux