libgit2/tests
Vicent Marti afeecf4f26 odb: Direct writes are back
DIRECT WRITES ARE BACK AND FASTER THAN EVER. The streaming writer to the
ODB was an overkill for the smaller objects like Commit and Tags; most
of the streaming logic was taking too long.

This commit makes Commits, Tags and Trees to be built-up in memory, and
then written to disk in 2 pushes (header + data), instead of streaming
everything.

This is *always* faster, even for big files (since the git_filebuf class
still does streaming writes when the memory cache overflows). This is
also a gazillion lines of code smaller, because we don't have to
precompute the final size of the object before starting the stream (this
was kind of defeating the point of streaming, anyway).

Blobs are still written with full streaming instead of loading them in
memory, since this is still the fastest way.

A new `git_buf` class has been added. It's missing some features, but
it'll get there.
2011-07-09 02:40:16 +02:00
..
resources Merge pull request #300 from carlosmn/gsoc2011/master 2011-07-05 04:31:37 -07:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING tests: Update NAMING file 2011-05-17 15:11:43 +03:00
t00-core.c test-core: Fix warning in uniq test 2011-07-07 12:23:47 +02:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c oid: Rename methods 2011-06-16 02:36:21 +02:00
t02-data.h Cleanup the testing toolkit 2011-03-03 20:23:52 +02:00
t02-objread.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t02-oids.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t03-objwrite.c fileops: Cleanup 2011-07-05 02:04:03 +02:00
t04-commit.c signature: straighten the creation of a signature 2011-07-05 02:21:26 +02:00
t05-revwalk.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t06-index.c refs: Cleanup reference renaming 2011-07-06 18:08:13 +02:00
t07-hashtable.c Fix -Wunused-but-set-variable warnings 2011-04-26 11:29:05 +02:00
t08-tag.c tag: add pattern based retrieval of list of tag names 2011-07-07 15:37:07 +02:00
t09-tree.c oid: Rename methods 2011-06-16 02:36:21 +02:00
t10-refs.c reflog: add API to read or write a reference log 2011-07-09 02:40:16 +02:00
t12-repo.c refs: Cleanup reference renaming 2011-07-06 18:08:13 +02:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t15-config.c Restore config10 test file 2011-07-05 17:47:10 +02:00
t16-remotes.c Add git_refspec_transform test 2011-06-26 18:18:11 +02:00
t17-bufs.c odb: Direct writes are back 2011-07-09 02:40:16 +02:00
test_helpers.c test: Abort when the temp workdir cannot be created 2011-07-07 02:54:07 +02:00
test_helpers.h Add remove_placeholders() test helper function which recursively removes marker files from a directory structure 2011-03-23 00:25:04 +02:00
test_lib.c test: Properly show error messages 2011-06-28 21:10:51 +02:00
test_lib.h cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
test_main.c odb: Direct writes are back 2011-07-09 02:40:16 +02:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00