Re: [PATCH] gitweb: Add support for gravatar-ssl

2012-08-09 Thread git
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

Re: [PATCH] l10n: de.po: translate index as Index

2015-06-01 Thread git
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

[PATCH] read-cache: call verify_hdr() in a background thread

2017-03-24 Thread git
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

[PATCH] read-cache: call verify_hdr() in a background thread

2017-03-24 Thread git
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

[PATCH 4/6] name-hash: perf improvement for lazy_init_name_hash

2017-03-22 Thread git
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

[PATCH 1/6] name-hash: specify initial size for istate.dir_hash table

2017-03-22 Thread git
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

[PATCH 3/6] hashmap: Add disallow_rehash setting

2017-03-22 Thread git
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

[PATCH 6/6] name-hash: add perf test for lazy_init_name_hash

2017-03-22 Thread git
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

[PATCH 0/6] thread lazy_init_name_hash

2017-03-22 Thread git
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

[PATCH 5/6] name-hash: add test-lazy-init-name-hash

2017-03-22 Thread git
, 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

[PATCH 2/6] hashmap: allow memihash computation to be continued

2017-03-22 Thread git
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

[PATCH v2 2/7] hashmap: allow memihash computation to be continued

2017-03-23 Thread git
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

[PATCH v2 3/7] hashmap: Add disallow_rehash setting

2017-03-23 Thread git
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

[PATCH v2 0/7] thread lazy_init_name_hash

2017-03-23 Thread git
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

[PATCH v2 5/7] name-hash: perf improvement for lazy_init_name_hash

2017-03-23 Thread git
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

[PATCH v2 7/7] name-hash: add perf test for lazy_init_name_hash

2017-03-23 Thread git
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

[PATCH v2 6/7] name-hash: add test-lazy-init-name-hash

2017-03-23 Thread git
, 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

[PATCH v2 1/7] name-hash: specify initial size for istate.dir_hash table

2017-03-23 Thread git
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

[PATCH v2 4/7] hashmap: document memihash_cont, hashmap_disallow_rehash api

2017-03-23 Thread git
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.

[PATCH v3 1/2] read-cache: core.checksumindex

2017-03-28 Thread git
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

[PATCH v3 2/2] test-core-checksum-index: core.checksumindex test helper

2017-03-28 Thread git
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

[PATCH v3 0/2] read-cache: call verify_hdr() in a background thread

2017-03-28 Thread git
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

[PATCH v2 2/2] skip_verify_index: helper test

2017-03-27 Thread git
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 @@ -

[PATCH v2 1/2] read-cache: skip index SHA verification

2017-03-27 Thread git
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

[PATCH v2 0/2] read-cache: call verify_hdr() in a background thread

2017-03-27 Thread git
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

[PATCH] name-hash: fix buffer overrun

2017-03-31 Thread git
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

[PATCH] name-hash: fix buffer overrun

2017-03-31 Thread git
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

[PATCH v4 3/4] test-strcmp-offset: created test for strcmp_offset

2017-04-04 Thread git
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

[PATCH v4 0/4] read-cache: speed up add_index_entry

2017-04-04 Thread git
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

[PATCH v4 4/4] read-cache: speed up add_index_entry during checkout

2017-04-04 Thread git
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

[PATCH v4 2/4] read-cache: add strcmp_offset function

2017-04-04 Thread git
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 *);

[PATCH v4 1/4] p0004-read-tree: perf test to time read-tree

2017-04-04 Thread git
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

[PATCH v8 2/3] p0006-read-tree-checkout: perf test to time read-tree

2017-04-10 Thread git
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 @

[PATCH v8 0/3] read-cache: speed up add_index_entry

2017-04-10 Thread git
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

[PATCH v8 3/3] read-cache: speed up add_index_entry during checkout

2017-04-10 Thread git
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

[PATCH v9 1/3] read-cache: add strcmp_offset function

2017-04-11 Thread git
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

[PATCH v9 2/3] p0006-read-tree-checkout: perf test to time read-tree

2017-04-11 Thread git
+++ 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

[PATCH v9 3/3] read-cache: speed up add_index_entry during checkout

2017-04-11 Thread git
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;

[PATCH v9 0/3] read-cache: speed up add_index_entry

2017-04-11 Thread git
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

[PATCH v4 2/2] p0005-status: time status on very large repo

2017-04-11 Thread git
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/

[PATCH v4 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-11 Thread git
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

[PATCH v4 0/2] string-list: use ALLOC_GROW macro when reallocing

2017-04-11 Thread git
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:

[PATCH v2 0/2] name-hash: fix buffer overrun

2017-04-03 Thread git
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

[PATCH v2 2/2] name-hash: fix buffer overrun

2017-04-03 Thread git
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.

[PATCH v2 1/2] test-online-cpus: helper to return cpu count

2017-04-03 Thread git
| 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

[PATCH v4 1/4] read-cache: core.checksumindex

2017-04-03 Thread git
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

[PATCH v4 0/4] read-cache: call verify_hdr() in a background thread

2017-04-03 Thread git
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

[PATCH v4 4/4] p0002-read-cache: test core.checksumindex

2017-04-03 Thread git
, 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

[PATCH v4 2/4] fsck: force core.checksumindex=1

2017-04-03 Thread git
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

[PATCH v4 3/4] t1450-fsck: test core.checksumindex

2017-04-03 Thread git
+ 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

[PATCH v3 2/2] p0005-status: time status on very large repo

2017-04-06 Thread git
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/

[PATCH v3 0/2] string-list: use ALLOC_GROW macro when reallocing

2017-04-06 Thread git
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

[PATCH v3 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-06 Thread git
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

[PATCH v6 3/3] read-cache: speed up add_index_entry during checkout

2017-04-06 Thread git
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,

[PATCH v6 2/3] p0004-read-tree: perf test to time read-tree

2017-04-06 Thread git
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

[PATCH v6 0/3] read-cache: speed up add_index_entry

2017-04-06 Thread git
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.

[PATCH v6 1/3] read-cache: add strcmp_offset function

2017-04-06 Thread git
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

[PATCH v1] WIP unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread git
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

[PATCH v1] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-06 Thread git
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

[PATCH v5] read-cache: call verify_hdr() in a background thread

2017-04-05 Thread git
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

[PATCH v5 2/4] read-cache: add strcmp_offset function

2017-04-05 Thread git
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 *);

[PATCH v5 4/4] read-cache: speed up add_index_entry during checkout

2017-04-05 Thread git
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

[PATCH v5 1/4] p0004-read-tree: perf test to time read-tree

2017-04-05 Thread git
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

[PATCH v5 3/4] test-strcmp-offset: created test for strcmp_offset

2017-04-05 Thread git
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

[PATCH v6] read-cache: force_verify_index_checksum

2017-04-05 Thread git
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

[PATCH v6] read-cache: call verify_hdr() in a background thread

2017-04-05 Thread git
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

[PATCH v5 0/4] read-cache: speed up add_index_entry

2017-04-05 Thread git
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

[PATCH v1 2/2] p0005-status: time status on very large repo

2017-04-05 Thread git
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/

[PATCH v1 0/2] string-list: use ALLOC_GROW macro when reallocing

2017-04-05 Thread git
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

[PATCH v1 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-05 Thread git
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

[PATCH v8 1/3] read-cache: add strcmp_offset function

2017-04-10 Thread git
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

[PATCH v3] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-13 Thread git
: 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 @

[PATCH v3] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-13 Thread git
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

[PATCH v12 4/5] read-cache: speed up has_dir_name (part 1)

2017-04-19 Thread git
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

[PATCH v12 1/5] read-cache: add strcmp_offset function

2017-04-19 Thread git
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

[PATCH v12 5/5] read-cache: speed up has_dir_name (part 2)

2017-04-19 Thread git
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

[PATCH v12 2/5] p0006-read-tree-checkout: perf test to time read-tree

2017-04-19 Thread git
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

[PATCH v12 0/5] read-cache: speed up add_index_entry

2017-04-19 Thread git
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

[PATCH v12 3/5] read-cache: speed up add_index_entry during checkout

2017-04-19 Thread git
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

[PATCH 00/10] RFC Partial Clone and Fetch

2017-03-08 Thread git
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

[PATCH 03/10] pack-objects: test for --partial-by-size --partial-special

2017-03-08 Thread git
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

[PATCH 09/10] clone: add partial-by-size and partial-special arguments

2017-03-08 Thread git
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

[PATCH 07/10] index-pack: add --allow-partial option to relax blob existence checks

2017-03-08 Thread git
-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

[PATCH 08/10] fetch: add partial-by-size and partial-special arguments

2017-03-08 Thread git
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

[PATCH 05/10] fetch-pack: add partial-by-size and partial-special

2017-03-08 Thread git
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

[PATCH 04/10] upload-pack: add partial (sparse) fetch

2017-03-08 Thread git
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

[PATCH 06/10] rev-list: add --allow-partial option to relax connectivity checks

2017-03-08 Thread git
-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

[PATCH 01/10] pack-objects: eat CR in addition to LF after fgets.

2017-03-08 Thread git
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

[PATCH 02/10] pack-objects: add --partial-by-size=n --partial-special

2017-03-08 Thread git
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

[PATCH 10/10] ls-partial: created command to list missing blobs

2017-03-08 Thread git
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

[PATCH v2 1/2] string-list: use ALLOC_GROW macro when reallocing string_list

2017-04-05 Thread git
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

[PATCH v2 0/2] string-list: use ALLOC_GROW macro when reallocing

2017-04-05 Thread git
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

[PATCH v2 2/2] p0005-status: time status on very large repo

2017-04-05 Thread git
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/

[PATCH v5] read-cache: force_verify_index_checksum

2017-04-05 Thread git
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

[PATCH v2] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-07 Thread git
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

[PATCH v2] unpack-trees: avoid duplicate ODB lookups during checkout

2017-04-07 Thread git
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,

[PATCH v7 1/3] read-cache: add strcmp_offset function

2017-04-07 Thread git
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

[PATCH v7 2/3] p0004-read-tree: perf test to time read-tree

2017-04-07 Thread git
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

[PATCH v7 3/3] read-cache: speed up add_index_entry during checkout

2017-04-07 Thread git
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,

[PATCH v7 0/3] read-cache: speed up add_index_entry

2017-04-07 Thread git
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   2   3   >