diff options
author | David Turner <dturner@twopensource.com> | 2014-06-04 05:38:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-06 00:24:50 +0200 |
commit | dde8a902c774268628015705a7767f61af18b865 (patch) | |
tree | 063e41ca57518a1e61774f5f5bab1f51c528e083 /t/valgrind/default.supp | |
parent | First batch for 2.1 (diff) | |
download | git-dde8a902c774268628015705a7767f61af18b865.tar.xz git-dde8a902c774268628015705a7767f61af18b865.zip |
refs.c: optimize check_refname_component()
In a repository with many refs, check_refname_component can be a major
contributor to the runtime of some git commands. One such command is
git rev-parse HEAD
Timings for one particular repo, with about 60k refs, almost all
packed, are:
Old: 35 ms
New: 29 ms
Many other commands which read refs are also sped up.
Signed-off-by: David Turner <dturner@twitter.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/valgrind/default.supp')
0 files changed, 0 insertions, 0 deletions