From fea20a9af56d5b7640ced14cde92fe6746291502 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2018 20:39:23 +0200 Subject: 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. --- src/writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/writer.c') 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; -- cgit v1.2.1