diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 20:39:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | aa0ec96ea8a25a2c12527acb4656bfa0af5b8409 (patch) | |
tree | 09b7f61a13fdfe20a285f1012c3adf63be60b06b /src/writer.c | |
parent | bc0e185a469018ea70f32abb50c4b4a1073b0249 (diff) | |
download | serd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.tar.gz serd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.tar.bz2 serd-aa0ec96ea8a25a2c12527acb4656bfa0af5b8409.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index f6e27c67..6b4916db 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; |