v2 must be enabled in:
- the repository's .git/config:
[protocol]
version = 2
- on the client side, by either passing -c protocol.version=2, or
setting globally in ~/.gitconfig:
[protocol]
version = 2
On 13 May 2020, at 22:43, Doug Luedtke <douglas...@gmail.com> wrote:Today I was asked about the performance difference for Gerrit 3.1.3 with Git protocol v2 enabled and Git 2.26.2. While testing I was not able to get a different in time. Digging into code reviews on googlesource to find test methods I found https://gerrit-review.googlesource.com/c/gerrit/+/208641/12 and it mentions enabling it on each repository.After following those instructions I was able to reduce the fetch to a fourth compared to protocol 1!The Gerrit 3.1 release notes states that Git Protocol V2 is enabled by default. It does not seem to be enabled. https://www.gerritcodereview.com/3.1.html#git-protocol-v2
v2 must be enabled in:
- the repository's .git/config:
[protocol]
version = 2
- on the client side, by either passing -c protocol.version=2, or
setting globally in ~/.gitconfig:
[protocol]
version = 2
Test commands:
- time GIT_TRACE_PACKET=1 git -c protocol.version=0 fetch --no-tags origin master
- real 0m8.606s
- user 0m0.000s
- sys 0m0.015s
- time GIT_TRACE_PACKET=1 git -c protocol.version=2 fetch --no-tags origin master
- real 0m1.896s
- user 0m0.000s
- sys 0m0.015s
Am I misunderstanding what is enabled by default?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/23f987b6-7580-425c-a3c6-7ea8e21bab68%40googlegroups.com.
Today I was asked about the performance difference for Gerrit 3.1.3 with Git protocol v2 enabled and Git 2.26.2. While testing I was not able to get a different in time. Digging into code reviews on googlesource to find test methods I found https://gerrit-review.googlesource.com/c/gerrit/+/208641/12 and it mentions enabling it on each repository.After following those instructions I was able to reduce the fetch to a fourth compared to protocol 1!
On 13 May 2020, at 22:43, Doug Luedtke <douglas...@gmail.com> wrote:Today I was asked about the performance difference for Gerrit 3.1.3 with Git protocol v2 enabled and Git 2.26.2. While testing I was not able to get a different in time. Digging into code reviews on googlesource to find test methods I found https://gerrit-review.googlesource.com/c/gerrit/+/208641/12 and it mentions enabling it on each repository.After following those instructions I was able to reduce the fetch to a fourth compared to protocol 1!The Gerrit 3.1 release notes states that Git Protocol V2 is enabled by default. It does not seem to be enabled. https://www.gerritcodereview.com/3.1.html#git-protocol-v2In Gerrit is enabled as an engine, that doesn’t mean that is enabled on the repository or on the client side.v2 must be enabled in:
- the repository's .git/config:
[protocol]
version = 2Or in the $GERRIT_SITE/etc/jgit.config- on the client side, by either passing -c protocol.version=2, or
setting globally in ~/.gitconfig:
[protocol]
version = 2Correct, unless you have git client v2.26 where it is enabled by default.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f77215df-723d-45e4-b85a-4bb4d036499e%40googlegroups.com.
Ponch (aka Fabio Ponciroli) has published today a blog post on the topic:HTHLuca.