aboutsummaryrefslogtreecommitdiffstats
path: root/tests/read_chunk_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 20:39:23 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit95f7334bbc02f3e75b33b9914eee58c69f1588bd (patch)
treebed06e929f286d099181d5e2e76ecf508df0add9 /tests/read_chunk_test.c
parent4f4408029cd8cefc1804d75a03f5c3f0ee7922fa (diff)
downloadserd-95f7334bbc02f3e75b33b9914eee58c69f1588bd.tar.gz
serd-95f7334bbc02f3e75b33b9914eee58c69f1588bd.tar.bz2
serd-95f7334bbc02f3e75b33b9914eee58c69f1588bd.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 'tests/read_chunk_test.c')
-rw-r--r--tests/read_chunk_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/read_chunk_test.c b/tests/read_chunk_test.c
index decfe829..9fa40bab 100644
--- a/tests/read_chunk_test.c
+++ b/tests/read_chunk_test.c
@@ -82,7 +82,7 @@ main(void)
SerdWorld* world = serd_world_new();
const SerdSink sink = {NULL, on_base, on_prefix, on_statement, on_end};
- SerdReader* reader = serd_reader_new(world, SERD_TURTLE, &sink);
+ SerdReader* reader = serd_reader_new(world, SERD_TURTLE, &sink, 4096);
assert(reader);
assert(!serd_reader_start_string(reader,