PREVIEW: Introduce DC_AND_OPENSSL_SHA1 make flag
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | sha1dc: safeguard against outside definitions of BIGENDIANsha1dc/ | +1 | 0 replies | |
| 2/7 | Makefile: optionally compile with both SHA1DC and SHA1_OPENSSLMakefile hash.h sha1dc/ +1 more | +50 | 4 replies | |
| 3/7 | config: add the core.enablesha1dc settingconfig.c | +8 | 0 replies | |
| 4/7 | t0013: do not skip the entire file wholesale without DC_SHA1t/ | +2 | 0 replies | |
| 5/7 | t0013: test DC_AND_OPENSSL_SHA1, tooMakefile t/ t/ | +21 | 0 replies | |
| 6/7 | mingw: enable DC_AND_OPENSSL_SHA1 by defaultconfig.mak.uname | +1 | 0 replies | |
| 7/7 | p0013: new test to compare SHA1DC vs OpenSSLt/ | +23 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] PREVIEW: Introduce DC_AND_OPENSSL_SHA1 make flag
As I pointed out several times in the past, the performance hit of enabling SHA1DC globally is not acceptable. This patch series not only demonstrates that clearly in the perf test it adds (it is the last patch in the current series, and its commit message has some numbers), it also shows an early glimpse of what I will be proposing to fix the situation.
Obviously, this patch series is not complete yet:
- the first patch is an obvious bug fix that I sent out separately, but it is needed to unbreak almost all tests on Windows.
- the most important part will be the patch turning core.enableSHA1DC into a tristate: "externalOnly" or "smart" or "auto" or something indicating that it switches on collision detection only for commands that accept objects from an outside source into the local repository, such as fetch, fast-import, etc
Johannes Schindelin (7):
sha1dc: safeguard against outside definitions of BIGENDIAN
Makefile: optionally compile with both SHA1DC and SHA1_OPENSSL
config: add the core.enablesha1dc setting
t0013: do not skip the entire file wholesale without DC_SHA1
t0013: test DC_AND_OPENSSL_SHA1, too
mingw: enable DC_AND_OPENSSL_SHA1 by default
p0013: new test to compare SHA1DC vs OpenSSL
Makefile | 13 +++++++++++++ config.c | 8 ++++++++ config.mak.uname | 1 + hash.h | 2 +- sha1dc/sha1.c | 23 ++++++++++++++++++++++- sha1dc/sha1.h | 16 ++++++++++++++++ t/helper/test-sha1.c | 10 ++++++++++ t/perf/p0013-sha1dc.sh | 23 +++++++++++++++++++++++ t/t0013-sha1dc.sh | 18 ++++++++++++------ 9 files changed, 106 insertions(+), 8 deletions(-) create mode 100644 t/perf/p0013-sha1dc.sh
base-commit: 063fe858b89ef8ee27965115fd6b1ed12e42e793
Published-As: https://github.com/dscho/git/releases/tag/sha1dc-knob-v1
Fetch-It-Via: git fetch https://github.com/dscho/git sha1dc-knob-v1
Signature · 1 line
2.12.1.windows.1