diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-02-17 22:32:00 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-02-18 00:20:47 +0300 |
commit | 348c7335dd804ea12eabac7106c5f9675a421ba0 (patch) | |
tree | 89d918bbc50ee95c44609947d284d49597c157fd /src/index.h | |
parent | 81d0ff1ca5db0ab1a3920c96605899c6161467c8 (diff) |
Improve the performance when writing Index files
In response to issue #60 (git_index_write really slow), the write_index
function has been rewritten to improve its performance -- it should now
be in par with the performance of git.git.
On top of that, if Posix Threads are available when compiling libgit2, a
new threaded writing system will be used (3 separate threads take care
of solving byte-endianness, hashing the contents of the index and
writing to disk, respectively). For very long Index files, this method
is up to 3x times faster than git.git.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/index.h')
-rw-r--r-- | src/index.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/index.h b/src/index.h index 9e45a6372..747ced0cf 100644 --- a/src/index.h +++ b/src/index.h @@ -33,12 +33,4 @@ struct git_index { git_index_tree *tree; }; -int git_index__write(git_index *index, git_filelock *file); -void git_index__sort(git_index *index); -int git_index__parse(git_index *index, const char *buffer, size_t buffer_size); -int git_index__remove_pos(git_index *index, unsigned int position); -int git_index__append(git_index *index, const git_index_entry *entry); - -void git_index_tree__free(git_index_tree *tree); - #endif |