summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-13 06:25:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-14 05:15:42 (GMT)
commit66eb375d3d334efa3f467775a5f2a647c131c4b1 (patch)
tree7c2570b1cad0876b77e69d21609d11c7a728272f /builtin
parent96c4f4a370591b4796628abe18f27f0133b21954 (diff)
downloadgit-66eb375d3d334efa3f467775a5f2a647c131c4b1.zip
git-66eb375d3d334efa3f467775a5f2a647c131c4b1.tar.gz
git-66eb375d3d334efa3f467775a5f2a647c131c4b1.tar.bz2
commit-slab: avoid large realloc
Instead of using a single "slab" and keep reallocating it as we find that we need to deal with commits with larger values of commit->index, make a "slab" an array of many "slab_piece"s. Each access may need two levels of indirections, but we only need to reallocate the first level array of pointers when we have to grow the table this way. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions