summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-11-30 20:53:54 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2015-11-30 20:53:54 -0500
commit337b2b08f46ea77d61fa66657ad62d8702bc233a (patch)
treea4e6e861ddfc9bbadff7f80728415c7018db1b55 /src/tree.h
parenta589f22a9441523327e4c987c5b5f5f857472067 (diff)
parent95ae3520c5c9f76a435f63cc2d5e18d7ba0ba171 (diff)
downloadlibgit2-337b2b08f46ea77d61fa66657ad62d8702bc233a.tar.gz
Merge pull request #3508 from libgit2/cmn/tree-parse-speed
Improvements to tree parsing speed
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tree.h b/src/tree.h
index d01b6fd41..914d788c8 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -12,17 +12,20 @@
#include "odb.h"
#include "vector.h"
#include "strmap.h"
+#include "pool.h"
struct git_tree_entry {
uint16_t attr;
+ uint16_t filename_len;
git_oid oid;
- size_t filename_len;
- char filename[1];
+ bool pooled;
+ char filename[GIT_FLEX_ARRAY];
};
struct git_tree {
git_object object;
git_vector entries;
+ git_pool pool;
};
struct git_treebuilder {