From 2c70b584b6b110a85f0a7b1491b40c0de37b7f93 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Oct 2018 14:15:28 +0100 Subject: Cache commonly used nodes in the world --- src/world.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/world.h') 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 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); -- cgit v1.2.1