aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-28 14:15:28 +0100
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit2c70b584b6b110a85f0a7b1491b40c0de37b7f93 (patch)
treee12e4b90e70eb42566f36ed16db2e630dc6e2303 /src/world.h
parentbd945cd3a0f49718fa40469aee9efc6a90266612 (diff)
downloadserd-2c70b584b6b110a85f0a7b1491b40c0de37b7f93.tar.gz
serd-2c70b584b6b110a85f0a7b1491b40c0de37b7f93.tar.bz2
serd-2c70b584b6b110a85f0a7b1491b40c0de37b7f93.zip
Cache commonly used nodes in the world
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/world.h b/src/world.h
index 6d32b529..11f36e21 100644
--- a/src/world.h
+++ b/src/world.h
@@ -23,10 +23,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;
+ 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;
};
FILE* serd_world_fopen(SerdWorld* world, const char* path, const char* mode);