warnings that ssl users with no javascript will see.
I'd rather just hardcode the https version than do anything with JS.
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org
Ralf Thielow venit, vidit, dixit 29.05.2015 20:54:
The term index is translated as Staging-Area to
not confuse beginners who don't know about Git's index.
Since the term staging area doesn't appear in original
Git messages (not even in the glossary) and index is a
well known term
https://public-inbox.org/git/85221b97-759f-b7a9-1256-21515d163...@jeffhostetler.com/
during a discussion on sha1dc.
Our testing on Windows showed that verifying the SHA1 hash
on the index file takes approximately the same amount of time
as parsing the file and building the array of cache_entries.
(It
cache.c | 87 +++-
1 file changed, 86 insertions(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index 9054369..27c63a3 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1564,6 +1564,83 @@ static void post_read_index_from(struct index_st
rmined from rough
analysis using:
t/helper/test-lazy-init-name-hash --analyze
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
name-hash.c | 487 +++-
1 file changed, 480 insertions(+), 7 deletions(-)
diff --git a/name-h
merous rehash() calls to
realloc and rebalance the hashmap. This is especially true
when the worktree is deep, with many directories containing
a few files.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
name-hash.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff
eletes.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
hashmap.c | 12 +++-
hashmap.h | 24
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/hashmap.c b/hashmap.c
index 505e63f..37dfc37 100644
--- a/hashmap.c
+++ b/hashmap.c
@@ -10
name-hash.sh | 19 +++
1 file changed, 19 insertions(+)
create mode 100644 t/perf/p0004-lazy-init-name-hash.sh
diff --git a/t/perf/p0004-lazy-init-name-hash.sh
b/t/perf/p0004-lazy-init-name-hash.sh
new file mode 100644
index 000..5afa8c8
--- /dev/null
+++ b/t/perf/p0004-la
From: Jeff Hostetler
This patch series is a performance optimization for
lazy_init_name_hash() in name-hash.c on very large
repositories.
This change allows lazy_init_name_hash() to optionally
use multiple threads when building the the_index.dir_hash
and
, 266 insertions(+)
create mode 100644 t/helper/test-lazy-init-name-hash.c
diff --git a/Makefile b/Makefile
index 9ec6065..5fb46c8 100644
--- a/Makefile
+++ b/Makefile
@@ -616,6 +616,7 @@ TEST_PROGRAMS_NEED_X += test-fake-ssh
TEST_PROGRAMS_NEED_X += test-genrandom
TEST_PROGRAMS_NEED_X += test-hashm
is, we can hash the parent directory first. And then
continue the computation to include the "/filename".
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
hashmap.c | 17 +
hashmap.h | 1 +
2 files changed, 18 insertions(+)
diff --git a/hashmap.c b/h
is, we can hash the parent directory first. And then
continue the computation to include the "/filename".
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
hashmap.c | 17 +
hashmap.h | 1 +
2 files changed, 18 insertions(+)
diff --git a/hashmap.c b/h
eletes.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
hashmap.c | 12 +++-
hashmap.h | 24
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/hashmap.c b/hashmap.c
index 93793cb..7d1044e 100644
--- a/hashmap.c
+++ b/hashmap.c
@@ -10
From: Jeff Hostetler
Version 2 of this patch series addresses the coding
style issues, compile errors in non-threaded builds,
and updated API documentation.
This patch series is a performance optimization for
lazy_init_name_hash() in name-hash.c on very large
rmined from rough
analysis using:
t/helper/test-lazy-init-name-hash --analyze
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
name-hash.c | 492 +++-
1 file changed, 485 insertions(+), 7 deletions(-)
diff --git a/name-h
name-hash.sh | 19 +++
1 file changed, 19 insertions(+)
create mode 100644 t/perf/p0004-lazy-init-name-hash.sh
diff --git a/t/perf/p0004-lazy-init-name-hash.sh
b/t/perf/p0004-lazy-init-name-hash.sh
new file mode 100644
index 000..5afa8c8
--- /dev/null
+++ b/t/perf/p0004-la
, 266 insertions(+)
create mode 100644 t/helper/test-lazy-init-name-hash.c
diff --git a/Makefile b/Makefile
index 9ec6065..5fb46c8 100644
--- a/Makefile
+++ b/Makefile
@@ -616,6 +616,7 @@ TEST_PROGRAMS_NEED_X += test-fake-ssh
TEST_PROGRAMS_NEED_X += test-genrandom
TEST_PROGRAMS_NEED_X += test-hashm
merous rehash() calls to
realloc and rebalance the hashmap. This is especially true
when the worktree is deep, with many directories containing
a few files.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
name-hash.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff
changed, 22 insertions(+)
diff --git a/Documentation/technical/api-hashmap.txt
b/Documentation/technical/api-hashmap.txt
index a3f020c..ccc634b 100644
--- a/Documentation/technical/api-hashmap.txt
+++ b/Documentation/technical/api-hashmap.txt
@@ -21,6 +21,9 @@ that the hashmap is initialized.
From: Jeff Hostetler <jeffh...@microsoft.com>
Teach git to skip verification of the index SHA in verify_hdr()
in read_index().
This is a performance optimization. The index file SHA verification
can be considered an ancient relic from the early days of git and only
useful for detectin
r/.gitignore | 1 +
t/helper/test-core-checksum-index.c | 77 +
3 files changed, 79 insertions(+)
create mode 100644 t/helper/test-core-checksum-index.c
diff --git a/Makefile b/Makefile
index 9ec6065..6049427 100644
--- a/Makefile
+++ b/Makefile
@@ -607,6 +607,7
From: Jeff Hostetler
Version 3 of this patch series simplifies this effort to just turn
on/off the hash verification using a "core.checksumindex" config variable.
I've preserved the original checksum validation code so that we can
force it on in fsck if desired.
It
r/.gitignore | 1 +
t/helper/test-skip-verify-index.c | 73 +++
3 files changed, 75 insertions(+)
create mode 100644 t/helper/test-skip-verify-index.c
diff --git a/Makefile b/Makefile
index 9ec6065..e4932b6 100644
--- a/Makefile
+++ b/Makefile
@@ -
From: Jeff Hostetler <jeffh...@microsoft.com>
Teach git to skip verification of the index SHA in read_index().
This is a performance optimization. The index file SHA verification
can be considered an ancient relic from the early days of git and only
useful for detecting disk corr
econds.
=
This patch contains a performance optimization to run
verify_hdr() in a background thread while the foreground
thread parses the index. This allows do_read_index() to
complete faster.
This idea was recently discussed on the mailing list in:
https://public-inbox.org/git/85221b97-759f-b7a
s-lazy-init-name-hash.sh | 19 +++
2 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 t/t3008-ls-files-lazy-init-name-hash.sh
diff --git a/name-hash.c b/name-hash.c
index cac313c..39309ef 100644
--- a/name-hash.c
+++ b/name-hash.c
@@ -342,7 +342,9 @@ sta
From: Jeff Hostetler
Fix buffer overrun in handle_range_dir() when the final entry
in the index was the only file in the last directory, such as
"a/b/foo.txt". The look ahead (k_start + 1) was invalid since
(k_start + 1) == k_end.
This bug was introduced by Jeff in
sh | 11
4 files changed, 77 insertions(+)
create mode 100644 t/helper/test-strcmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scra
From: Jeff Hostetler
Teach add_index_entry_with_check() and has_dir_name()
to avoid index lookups if the given path sorts after
the last entry in the index.
This saves at least 2 binary searches per entry.
This improves performance during checkout and read-tree because
sorted order, so this change saves at least 2
lookups per file.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
read-cache.c | 44 +++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index b3fc77d..bf
ons(+)
diff --git a/cache.h b/cache.h
index 80b6372..4d82490 100644
--- a/cache.h
+++ b/cache.h
@@ -574,6 +574,7 @@ extern int write_locked_index(struct index_state *, struct
lock_file *lock, unsi
extern int discard_index(struct index_state *);
extern int unmerged_index(const struct index_state *);
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0004-read-tree.sh | 84 +++
1 file changed, 84 insertions(+)
create mode 100755 t/perf/p0004-read-tree.sh
diff --git a/t/per
06-read-tree-checkout.sh
create mode 100644 t/perf/repos/.gitignore
create mode 100755 t/perf/repos/many-files.sh
diff --git a/t/perf/p0006-read-tree-checkout.sh
b/t/perf/p0006-read-tree-checkout.sh
new file mode 100755
index 000..69425ae
--- /dev/null
+++ b/t/perf/p0006-read-tree-checkout.sh
@
From: Jeff Hostetler
Version 8 addresses the following:
() Refactors strcmp_offset() test helper to just compare the
values and return results to stdout.
() Updates t0065 to have the actual test logic.
() Splits the synthetic test repo generation out of the
20)
18.59(17.96+0.33) 18.70(18.07+0.42) +0.6%
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
read-cache.c | 46 --
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 97f13a1..a8
cmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scrap-cache-tree
TEST_PROGRAMS_NEED_X += test-sha1
TEST_PROGRAMS_NEED_X += test-sha1-array
TEST_PRO
+++
3 files changed, 180 insertions(+)
create mode 100755 t/perf/p0006-read-tree-checkout.sh
create mode 100644 t/perf/repos/.gitignore
create mode 100755 t/perf/repos/many-files.sh
diff --git a/t/perf/p0006-read-tree-checkout.sh
b/t/perf/p0006-read-tree-checkout.sh
new file mode 100755
i
changed, 44 insertions(+), 2 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 97f13a1..a8ef823 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -918,9 +918,24 @@ static int has_dir_name(struct index_state *istate,
int stage = ce_stage(ce);
const char *name = ce->name;
From: Jeff Hostetler
Version 9 addresses the following:
() p0006 perf test can now run using either synthetic repos
from t/perf/repos/many-repos.sh -OR- an actual real-world
repo.
() The commit message has been updated to include results of
p0006 on
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0005-status.sh | 51 ++
1 file changed, 51 insertions(+)
create mode 100755 t/perf/p0005-status.sh
diff --git a/
g-list.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/string-list.c b/string-list.c
index 45016ad..003ca18 100644
--- a/string-list.c
+++ b/string-list.c
@@ -41,10 +41,7 @@ static int add_entry(int insert_at, struct string_list
*list, const char *string
if
From: Jeff Hostetler
Version 4 greatly simplifies the p0005 perf test. It now uses an existing
repo -- either real-world or artificial from t/perf/repos/many-files.sh.
Jeff Hostetler (2):
string-list: use ALLOC_GROW macro when reallocing string_list
p0005-status:
From: Jeff Hostetler
Version 2 of this fix smashes the HT and chmod issues in the
test code discussed on the mailing list. The test has also
been updated to skip on 1 cpu systems.
Fix buffer overrun in handle_range_dir() when the final entry
in the
effh...@microsoft.com>
---
name-hash.c | 4 +++-
t/t3008-ls-files-lazy-init-name-hash.sh | 27 +++
2 files changed, 30 insertions(+), 1 deletion(-)
create mode 100755 t/t3008-ls-files-lazy-init-name-hash.sh
diff --git a/name-hash.c b/name-hash.
| 1 +
t/helper/test-online-cpus.c | 8
3 files changed, 10 insertions(+)
create mode 100644 t/helper/test-online-cpus.c
diff --git a/Makefile b/Makefile
index 9b36068..3bb31e9 100644
--- a/Makefile
+++ b/Makefile
@@ -626,6 +626,7 @@ TEST_PROGRAMS_NEED_X += test
From: Jeff Hostetler <jeffh...@microsoft.com>
Teach git to skip verification of the SHA-1 checksum at the end of
the index file in verify_hdr() called from read_index() when the
core.checksumIndex configuration variable is set to false.
The checksum verification is for detecting disk corr
From: Jeff Hostetler
Version 4 of this patch series incorporates the cleanup made by Junio
to my 3rd veresion, updates fsck to always verify the checksum, and a
new simplified perf test using p0002 as discussed on the mailing list.
Version 3 of this
, 1 deletion(-)
diff --git a/t/perf/p0002-read-cache.sh b/t/perf/p0002-read-cache.sh
index 9180ae9..71feacd 100755
--- a/t/perf/p0002-read-cache.sh
+++ b/t/perf/p0002-read-cache.sh
@@ -7,7 +7,13 @@ test_description="Tests performance of reading the index"
test_perf_default_repo
count=1000
che.c | 20 +---
3 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 1a5cacc..6913233 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -771,6 +771,7 @@ int cmd_fsck(int argc, const char **argv, const char
*prefix)
}
if (keep_c
+
1 file changed, 27 insertions(+)
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 33a51c9..a33d542 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -689,4 +689,31 @@ test_expect_success 'bogus head does not fallback to all
heads' '
! grep $blob out
'
+test_ex
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0005-status.sh | 61 ++
1 file changed, 61 insertions(+)
create mode 100755 t/perf/p0005-status.sh
diff --git a/
From: Jeff Hostetler
Version 3 eliminates unnecessary exports from p0005 perf test
(and fixes the mode bits).
Use ALLOC_GROW() macro when reallocating a string_list array
rather than simply increasing it by 32. This helps performance
of status on very
ertion(+), 4 deletions(-)
diff --git a/string-list.c b/string-list.c
index 45016ad..003ca18 100644
--- a/string-list.c
+++ b/string-list.c
@@ -41,10 +41,7 @@ static int add_entry(int insert_at, struct string_list
*list, const char *string
if (exact_match)
retur
cache.c | 44 +++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index e8f1900..58f69b2 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -918,6 +918,21 @@ static int has_dir_name(struct index_state *istate,
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0004-read-tree.sh | 117 ++
1 file changed, 117 insertions(+)
create mode 100755 t/perf/p0004-read-tree.sh
diff --git a/t/per
From: Jeff Hostetler
Version 6 combines the strcmp_offset() function and unit tests
into a single commit and places it first in the history, so that
it can be isolated into a separate patch series if desired. It
also clarifies the return value when the strings are equal.
cmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scrap-cache-tree
TEST_PROGRAMS_NEED_X += test-sha1
TEST_PROGRAMS_NEED_X += test-sha1-array
TEST_PRO
From: Jeff Hostetler
Avoid duplicate ODB lookups for trees during traverse_tree_recursive().
I'm marking this WIP so we can talk about the TODO in the
commit message.
Jeff Hostetler (1):
unpack-trees: avoid duplicate ODB lookups during checkout
tree-walk.c| 8
changed, 18 insertions(+), 4 deletions(-)
diff --git a/tree-walk.c b/tree-walk.c
index ff77605..3b82f0e 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -92,6 +92,14 @@ void *fill_tree_descriptor(struct tree_desc *desc, const
unsigned char *sha1)
return buf;
}
+void *copy_tree_descriptor(stru
From: Jeff Hostetler
Version 5 of this patch series further simplifies the change to a
single global variable for use by fsck. It eliminates the core
config setting. Further discussion on the mailing list indicated
that the config setting only added confusion and
ons(+)
diff --git a/cache.h b/cache.h
index 80b6372..4d82490 100644
--- a/cache.h
+++ b/cache.h
@@ -574,6 +574,7 @@ extern int write_locked_index(struct index_state *, struct
lock_file *lock, unsi
extern int discard_index(struct index_state *);
extern int unmerged_index(const struct index_state *);
sorted order, so this change saves at least 2
lookups per file.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
read-cache.c | 44 +++-
1 file changed, 43 insertions(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index b3fc77d..bf
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0004-read-tree.sh | 116 ++
1 file changed, 116 insertions(+)
create mode 100755 t/perf/p0004-read-tree.sh
diff --git a/t/per
sh | 11
4 files changed, 77 insertions(+)
create mode 100644 t/helper/test-strcmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scra
From: Jeff Hostetler <jeffh...@microsoft.com>
Teach git to skip verification of the SHA1-1 checksum at the end of
the index file in verify_hdr() which is called from read_index()
unless the "force_verify_index_checksum" global variable is set.
Teach fsck to force this verificatio
From: Jeff Hostetler
Version 6 of this patch series cleans up a little further
and uses test_when_finished in the unit test.
Version 5 of this patch series further simplifies the change to a
single global variable for use by fsck. It eliminates the core
From: Jeff Hostetler
[This is labeled as version 5 because of a cut-n-paste
accident where my first version of this patch was labeled
version 4.]
This version adds more perf tests to p0004-read-tree.sh
Teach add_index_entry_with_check() and
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0005-status.sh | 70 ++
1 file changed, 70 insertions(+)
create mode 100644 t/perf/p0005-status.sh
diff --git a/
From: Jeff Hostetler
Use ALLOC_GROW() macro when reallocating a string_list array
rather than simply increasing it by 32. This helps performance
of status on very large repos on Windows.
Jeff Hostetler (2):
string-list: use ALLOC_GROW macro when reallocing string_list
rtions(+), 4 deletions(-)
diff --git a/string-list.c b/string-list.c
index 45016ad..cd4c4e0 100644
--- a/string-list.c
+++ b/string-list.c
@@ -41,10 +41,8 @@ static int add_entry(int insert_at, struct string_list
*list, const char *string
if (exact_match)
retur
cmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scrap-cache-tree
TEST_PROGRAMS_NEED_X += test-sha1
TEST_PROGRAMS_NEED_X += test-sha1-array
TEST_PRO
: Jeff Hostetler <jeffh...@microsoft.com>
---
unpack-trees.c | 37 +
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/unpack-trees.c b/unpack-trees.c
index 3a8ee19..a674423 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -531,6 +531,11 @
From: Jeff Hostetler
Version 3 uses a structure copy rather than memcpy and adds a comment.
Jeff Hostetler (1):
unpack-trees: avoid duplicate ODB lookups during checkout
unpack-trees.c | 37 +
1 file changed, 33 insertions(+), 4
r_name() and the trivial optimization.
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
read-cache.c | 45 +
1 file changed, 45 insertions(+)
diff --git a/read-cache.c b/read-cache.c
index 6a27688..9af0bd4 100644
--- a/read-cache.c
+++ b/read-cache
cmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scrap-cache-tree
TEST_PROGRAMS_NEED_X += test-sha1
TEST_PROGRAMS_NEED_X += test-sha1-array
TEST_PRO
h 4.2M files.
$ GIT_PERF_REPO=~/work/gfw/t/perf/repos/gen-many-files-10.4.3.git/ ./run HEAD~3
HEAD ./p0006-read-tree-checkout.sh
TestHEAD~3
HEAD
0006.2: read-tree br_base br_ballast (4194305)
29.96(19.26
ode 100755 t/perf/p0006-read-tree-checkout.sh
create mode 100644 t/perf/repos/.gitignore
create mode 100755 t/perf/repos/inflate-repo.sh
create mode 100755 t/perf/repos/many-files.sh
diff --git a/t/perf/p0006-read-tree-checkout.sh
b/t/perf/p0006-read-tree-checkout.sh
new file mode 100755
i
From: Jeff Hostetler
Version 12 adds a new t/perf/repo/inflate-repo.sh script to let you
inflate a test repo, such as a copy of git.git or linux.git, to have
a branch containing a very large number of (non-synthetic) files.
It also fixes the "##" comments in the
changed, 10 insertions(+), 1 deletion(-)
diff --git a/read-cache.c b/read-cache.c
index 97f13a1..6a27688 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1021,7 +1021,16 @@ static int add_index_entry_with_check(struct index_state
*istate, struct cache_e
if (!(option & ADD_CACHE
later request omitted blobs (either from a
modified upload-pack-like request to the server or via a completely
independent mechanism).
The purpose here is to reduce the size of packfile downloads and help
git scale to extremely large repos.
I use the term "partial" here to refer to a portio
1 file changed, 72 insertions(+)
create mode 100644 t/5316-pack-objects-partial.sh
diff --git a/t/5316-pack-objects-partial.sh b/t/5316-pack-objects-partial.sh
new file mode 100644
index 000..352de34
--- /dev/null
+++ b/t/5316-pack-objects-partial.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+
+test_descr
clone.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/builtin/clone.c b/builtin/clone.c
index 3f63edb..e5a5904 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -56,6 +56,8 @@ static struct string_list option_required_reference =
STRING_LIST_INIT_NODUP;
static struct
-pack.c | 20 ++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index f4b87c6..8f99408 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -13,7 +13,7 @@
#include "thread-utils.h"
static const
ltin/fetch.c | 26 +-
connected.c | 3 +++
connected.h | 3 +++
3 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/builtin/fetch.c b/builtin/fetch.c
index b5ad09d..3d47107 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -52,6 +52,8 @@ stati
osoft.com>
---
builtin/fetch-pack.c | 9 +
fetch-pack.c | 17 +
fetch-pack.h | 2 ++
transport.c | 8
transport.h | 8
5 files changed, 44 insertions(+)
diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c
index cfe9
7 +
upload-pack.c | 32 ++-
3 files changed, 52 insertions(+), 1 deletion(-)
diff --git a/Documentation/technical/pack-protocol.txt
b/Documentation/technical/pack-protocol.txt
index c59ac99..0032729 100644
--- a/Documentation/technical/p
-list.c | 22 +-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 0aa93d5..50c49ba 100644
--- a/builtin/rev-list.c
+++ b/builtin/rev-list.c
@@ -45,6 +45,7 @@ static const char rev_list_usage[] =
"--left-right\n
From: Jeff Hostetler <g...@jeffhostetler.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
builtin/pack-objects.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index f294dcf..7e052bb 100644
--- a/builtin/pack-obj
gument is used, git special files,
such as ".gitattributes" and ".gitignores" are included.
When both are given, the union of two are included.
This is intended to be used in a partial clone or fetch.
(This has also been called sparse- or lazy-clone.)
Signed-off-by: Jeff Hostetl
create mode 100644 partial-utils.c
create mode 100644 partial-utils.h
diff --git a/Makefile b/Makefile
index 9ec6065..96e9e1e 100644
--- a/Makefile
+++ b/Makefile
@@ -791,6 +791,7 @@ LIB_OBJS += pack-write.o
LIB_OBJS += pager.o
LIB_OBJS += parse-options.o
LIB_OBJS += parse-options-cb.o
+LIB_OBJ
ertion(+), 4 deletions(-)
diff --git a/string-list.c b/string-list.c
index 45016ad..003ca18 100644
--- a/string-list.c
+++ b/string-list.c
@@ -41,10 +41,7 @@ static int add_entry(int insert_at, struct string_list
*list, const char *string
if (exact_match)
retur
From: Jeff Hostetler
Use ALLOC_GROW() macro when reallocating a string_list array
rather than simply increasing it by 32. This helps performance
of status on very large repos on Windows.
Jeff Hostetler (2):
string-list: use ALLOC_GROW macro when reallocing string_list
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0005-status.sh | 70 ++
1 file changed, 70 insertions(+)
create mode 100644 t/perf/p0005-status.sh
diff --git a/
From: Jeff Hostetler <jeffh...@microsoft.com>
Teach git to skip verification of the SHA1-1 checksum at the end of
the index file in verify_hdr() which is called from read_index()
unless the "force_verify_index_checksum" global variable is set.
Teach fsck to force this verificatio
From: Jeff Hostetler
Version 2 simplifies this and just copies the tree_descriptor
data and borrows the underlying buffer without mallocing. It
also handles the n=3 cases, so merges shold be helped too.
I've updated the p0004 perf times in the commit message.
The V2
7+2.82)
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
unpack-trees.c | 23 +++
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/unpack-trees.c b/unpack-trees.c
index 3a8ee19..143c5d9 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -531,6 +531,
cmp-offset.c
create mode 100755 t/t0065-strcmp-offset.sh
diff --git a/Makefile b/Makefile
index 9ec6065..4c4c246 100644
--- a/Makefile
+++ b/Makefile
@@ -631,6 +631,7 @@ TEST_PROGRAMS_NEED_X += test-scrap-cache-tree
TEST_PROGRAMS_NEED_X += test-sha1
TEST_PROGRAMS_NEED_X += test-sha1-array
TEST_PRO
From: Jeff Hostetler <jeffh...@microsoft.com>
Signed-off-by: Jeff Hostetler <jeffh...@microsoft.com>
---
t/perf/p0004-read-tree.sh | 117 ++
1 file changed, 117 insertions(+)
create mode 100755 t/perf/p0004-read-tree.sh
diff --git a/t/per
cache.c | 46 --
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 97f13a1..a8ef823 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -918,9 +918,24 @@ static int has_dir_name(struct index_state *istate,
From: Jeff Hostetler
Version 7 addresses size_t and casting issues in strcmp_offset()
and replaces shell test function with an awk expression to make
the perf test run faster.
Teach add_index_entry_with_check() and has_dir_name()
to avoid index lookups
1 - 100 of 208 matches
Mail list logo