aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 20:39:23 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commitfea20a9af56d5b7640ced14cde92fe6746291502 (patch)
tree848c9e3a4e3e33d0b65ef39142d0ff8507af3391 /src/writer.c
parent29cfc326f8f64d8327597f2218f0caefeed4560f (diff)
downloadserd-fea20a9af56d5b7640ced14cde92fe6746291502.tar.gz
serd-fea20a9af56d5b7640ced14cde92fe6746291502.tar.bz2
serd-fea20a9af56d5b7640ced14cde92fe6746291502.zip
Use a fixed-size reader stack
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index e5ee5e58..7c939961 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -879,7 +879,7 @@ serd_writer_new(SerdWorld* world,
writer->env = env;
writer->root_node = NULL;
writer->root_uri = SERD_URI_NULL;
- writer->anon_stack = serd_stack_new(4 * sizeof(WriteContext));
+ writer->anon_stack = serd_stack_new(SERD_PAGE_SIZE);
writer->context = context;
writer->list_subj = NULL;
writer->empty = true;