diff options
author | David Robillard <d@drobilla.net> | 2022-04-10 18:38:56 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | b839af39ad87fbf0fe30fd500b596a5593c13a69 (patch) | |
tree | 2cc2bd60bd1e28cd966f694a3329cdbd8c80b023 /src/reader.h | |
parent | c8594c69b612005c7507ad00f7274ca7791197d7 (diff) | |
download | serd-b839af39ad87fbf0fe30fd500b596a5593c13a69.tar.gz serd-b839af39ad87fbf0fe30fd500b596a5593c13a69.tar.bz2 serd-b839af39ad87fbf0fe30fd500b596a5593c13a69.zip |
Reuse the same rdf:type node for all "a" abbreviations
This reduces the stack space requirements for every type statement, at the cost
of adding a bit of constant bloat for the node in documents that do not contain
it.
Diffstat (limited to 'src/reader.h')
-rw-r--r-- | src/reader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reader.h b/src/reader.h index 0bb3454b..9ec2e4ac 100644 --- a/src/reader.h +++ b/src/reader.h @@ -40,6 +40,7 @@ struct SerdReaderImpl { SerdNode* rdf_first; SerdNode* rdf_rest; SerdNode* rdf_nil; + SerdNode* rdf_type; SerdByteSource* source; SerdEnv* env; SerdStack stack; |