diff options
author | David Turner <dturner@twopensource.com> | 2014-06-03 23:38:10 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-05 15:24:50 -0700 |
commit | dde8a902c774268628015705a7767f61af18b865 (patch) | |
tree | 063e41ca57518a1e61774f5f5bab1f51c528e083 /Documentation/technical/shallow.txt | |
parent | First batch for 2.1 (diff) | |
download | tgif-dde8a902c774268628015705a7767f61af18b865.tar.xz |
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 'Documentation/technical/shallow.txt')
0 files changed, 0 insertions, 0 deletions