Merge branch 'nd/preallocate-hash'
authorJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2013 21:02:19 +0000 (14:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2013 21:02:19 +0000 (14:02 -0700)
When we know approximately how many entries we will have in the
hash-table, it makes sense to size the hash table to that number
from the beginning to avoid unnecessary rehashing.

* nd/preallocate-hash:
Preallocate hash tables when the number of inserts are known in advance

1  2 
name-hash.c
diff --cc name-hash.c
Simple merge