diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-03-17 10:28:06 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-16 22:57:29 -0700 |
commit | c73592812d36ccc7eccfd0489177970d246fa522 (patch) | |
tree | 1e92b0c8fb8cb4bf5bbb10f38cf695785457b2e7 /notes.h | |
parent | git.c: make usage match manual page (diff) | |
download | tgif-c73592812d36ccc7eccfd0489177970d246fa522.tar.xz |
Preallocate hash tables when the number of inserts are known in advance
This avoids unnecessary re-allocations and reinsertions. On webkit.git
(i.e. about 182k inserts to the name hash table), this reduces about
100ms out of 3s user time.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.h')
0 files changed, 0 insertions, 0 deletions