Allocate and free trees using an object pool
This commit is contained in:
parent
53152658ce
commit
addeb6c4c1
11 changed files with 287 additions and 230 deletions
|
|
@ -3,12 +3,15 @@
|
|||
|
||||
#include "runtime/parser.h"
|
||||
#include "runtime/tree.h"
|
||||
#include "runtime/get_changed_ranges.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
struct TSDocument {
|
||||
Parser parser;
|
||||
TSInput input;
|
||||
Tree *tree;
|
||||
TreePath tree_path1;
|
||||
TreePath tree_path2;
|
||||
size_t parse_count;
|
||||
bool valid;
|
||||
bool owns_input;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue