diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 14:15:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | 6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0 (patch) | |
tree | 566321615dbbdc73554339c73da67a4bc0c02638 /src/world.h | |
parent | 800f2d0d4960061a1739a36d8b608a13896b321e (diff) | |
download | serd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.tar.gz serd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.tar.bz2 serd-6aee38ce233b319c4ee3ac1f16f4c2ca621cb4b0.zip |
Cache commonly used nodes in the world
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/world.h b/src/world.h index 99f0c92d..44e21166 100644 --- a/src/world.h +++ b/src/world.h @@ -23,10 +23,18 @@ #include <stdio.h> struct SerdWorldImpl { - SerdErrorFunc error_func; - void* error_handle; - uint32_t next_blank_id; - SerdNode* blank_node; + SerdNodes* nodes; + SerdErrorFunc error_func; + void* error_handle; + SerdNode* blank_node; + const SerdNode* rdf_first; + const SerdNode* rdf_nil; + const SerdNode* rdf_rest; + const SerdNode* rdf_type; + const SerdNode* xsd_boolean; + const SerdNode* xsd_decimal; + const SerdNode* xsd_integer; + uint32_t next_blank_id; }; /// Open a file configured for fast sequential reading |