aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-09-23 14:54:09 +0200
committerDavid Robillard <d@drobilla.net>2017-09-23 15:59:23 +0200
commit78f38288245ca4245110869ad2c40afde931a0db (patch)
tree7e16135998e92fdf4f0b2b3c955867a2e30d4ae5 /src/writer.c
parentf8c8f7e02605c10af0b6bc9f1261e893dc825e97 (diff)
downloadserd-78f38288245ca4245110869ad2c40afde931a0db.tar.gz
serd-78f38288245ca4245110869ad2c40afde931a0db.tar.bz2
serd-78f38288245ca4245110869ad2c40afde931a0db.zip
Use more efficient stack allocation and growth policies
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 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;