diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 14:15:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:47 +0100 |
commit | ea4ade33a6d6ed11d870600b9e54a3f8e34ddb29 (patch) | |
tree | ef17000e1316884fe3c06ef53b2f88bf758f4f01 /src/world.h | |
parent | 01ce25ac77fb1d8109cb45796ad9b4da1f9e8349 (diff) | |
download | serd-ea4ade33a6d6ed11d870600b9e54a3f8e34ddb29.tar.gz serd-ea4ade33a6d6ed11d870600b9e54a3f8e34ddb29.tar.bz2 serd-ea4ade33a6d6ed11d870600b9e54a3f8e34ddb29.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 99ef27b8..232d458f 100644 --- a/src/world.h +++ b/src/world.h @@ -22,10 +22,18 @@ #include <stdio.h> struct SerdWorldImpl { - SerdErrorSink error_sink; - void* error_handle; - uint32_t next_blank_id; - SerdNode* blank_node; + SerdNodes* nodes; + SerdErrorSink error_sink; + void* error_handle; + uint32_t next_blank_id; + 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; }; FILE* serd_world_fopen(SerdWorld* world, const char* path, const char* mode); |