Merge branch 'nd/preallocate-hash'
commitc241e285e53bc84def85682eeaa265c1cd99cceb
authorJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2013 21:02:19 +0000 (21 14:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Mar 2013 21:02:19 +0000 (21 14:02 -0700)
tree149c957fa2d297c1a2ddb07e5b459f855eb831d5
parent09386fff3370c1833cc8c3ba8bbf70e460fecf17
parentc73592812d36ccc7eccfd0489177970d246fa522
Merge branch 'nd/preallocate-hash'

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
name-hash.c