diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 20:39:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | 95f7334bbc02f3e75b33b9914eee58c69f1588bd (patch) | |
tree | bed06e929f286d099181d5e2e76ecf508df0add9 /wscript | |
parent | 4f4408029cd8cefc1804d75a03f5c3f0ee7922fa (diff) | |
download | serd-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 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -560,7 +560,7 @@ def test(tst): check([serdi, '%s/tests/good/manifest.ttl' % srcdir]) check([serdi, '-v']) check([serdi, '-h']) - check([serdi, '-s', '<foo> a <#Thingie> .']) + check([serdi, '-k', '512', '-s', '<foo> a <#Thingie> .']) check([serdi, os.devnull]) with tempfile.TemporaryFile(mode='r') as stdin: check([serdi, '-'], stdin=stdin) @@ -575,6 +575,10 @@ def test(tst): check([serdi, '-i', 'illegal']) check([serdi, '-i', 'turtle']) check([serdi, '-i']) + check([serdi, '-k']) + check([serdi, '-k', '-1']) + check([serdi, '-k', str(2**63 - 1)]) + check([serdi, '-k', '1024junk']) check([serdi, '-o', 'illegal']) check([serdi, '-o']) check([serdi, '-p']) |