diff options
| author | Christian Couder <christian.couder@gmail.com> | 2018-01-18 11:08:54 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-01-19 13:21:49 -0800 |
| commit | 3449847168c9fa6e23db364e7da9077eadd39547 (patch) | |
| tree | a95291813f860c98929b5c5c7c83ddfbb0053c0f /refs/files-backend.c | |
| parent | sha1_file: remove static strbuf from sha1_file_name() (diff) | |
| download | git-3449847168c9fa6e23db364e7da9077eadd39547.tar.gz git-3449847168c9fa6e23db364e7da9077eadd39547.zip | |
sha1_file: improve sha1_file_name() perfs
As sha1_file_name() could be performance sensitive, let's
make it faster by using strbuf_addstr() and strbuf_addc()
instead of strbuf_addf().
Helped-by: Derrick Stolee <stolee@gmail.com>
Helped-by: Jeff Hostetler <git@jeffhostetler.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions
