| author | Linus Torvalds <torvalds@linux-foundation.org> | |
| Thu, 21 Jan 2010 23:25:19 +0000 (15:25 -0800) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Fri, 22 Jan 2010 04:03:45 +0000 (20:03 -0800) | ||
| commit | a5031214c4fe5f5d3fcf649d10769744cbc66fed | |
| tree | 85f3cff5c42f5517af0c11a5238551f623f3c577 | tree | snapshot |
| parent | fb7d3f32b283a3847e6f151a06794abd14ffd81b | commit | diff |
slim down "git show-index"
As the documentation says, this is primarily for debugging, and
in the longer term we should rename it to test-show-index or something.
In the meantime, just avoid xmalloc (which slurps in the rest of git), and
separating out the trivial hex functions into "hex.o".
This results in
[torvalds@nehalem git]$ size git-show-index
text data bss dec hex filename
222818 2276 112688 337782 52776 git-show-index (before)
5696 624 1264 7584 1da0 git-show-index (after)
which is a whole lot better.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
As the documentation says, this is primarily for debugging, and
in the longer term we should rename it to test-show-index or something.
In the meantime, just avoid xmalloc (which slurps in the rest of git), and
separating out the trivial hex functions into "hex.o".
This results in
[torvalds@nehalem git]$ size git-show-index
text data bss dec hex filename
222818 2276 112688 337782 52776 git-show-index (before)
5696 624 1264 7584 1da0 git-show-index (after)
which is a whole lot better.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| Makefile | diff | blob | history | |
| hex.c | [new file with mode: 0644] | blob |
| sha1_file.c | diff | blob | history | |
| show-index.c | diff | blob | history |