libgit2/tests/object
Carlos Martín Nieto 4d3f1f9740 treebuilder: use a map instead of vector to store the entries
Finding a filename in a vector means we need to resort it every time we
want to read from it, which includes every time we want to write to it
as well, as we want to find duplicate keys.

A hash-map fits what we want to do much more accurately, as we do not
care about sorting, but just the particular filename.

We still keep removed entries around, as the interface let you assume
they were going to be around until the treebuilder is cleared or freed,
but in this case that involves an append to a vector in the filter case,
which can now fail.

The only time we care about sorting is when we write out the tree, so
let's make that the only time we do any sorting.
2014-06-10 15:14:13 +02:00
..
blob Merge pull request #2334 from libgit2/rb/fix-2333 2014-05-12 10:44:13 -07:00
commit message: don't assume the comment char 2014-05-18 10:06:49 +02:00
raw Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tag Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tree treebuilder: use a map instead of vector to store the entries 2014-06-10 15:14:13 +02:00
cache.c Win32: Fix object::cache::threadmania test on x64 2014-06-07 12:51:48 -04:00
lookup.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
lookupbypath.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
message.c message: don't assume the comment char 2014-05-18 10:06:49 +02:00
peel.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
shortid.c Add failing test for git_object_short_id 2014-03-10 11:35:14 -07:00