From 78f38288245ca4245110869ad2c40afde931a0db Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Sep 2017 14:54:09 +0200 Subject: Use more efficient stack allocation and growth policies --- 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 d1f1b87f..c21676b2 100644 --- a/src/writer.c +++ b/src/writer.c @@ -862,7 +862,7 @@ serd_writer_new(SerdSyntax syntax, writer->root_node = SERD_NODE_NULL; writer->root_uri = SERD_URI_NULL; writer->base_uri = base_uri ? *base_uri : SERD_URI_NULL; - writer->anon_stack = serd_stack_new(sizeof(WriteContext)); + writer->anon_stack = serd_stack_new(4 * sizeof(WriteContext)); writer->context = context; writer->list_subj = SERD_NODE_NULL; writer->empty = true; -- cgit v1.2.1