CDC and yaml_bench makefile now always compile with debug

symbols. yaml_bench can now repeat the benchmark many times in a
single run. yaml_gen can now disable collection keys in mappings.
This commit is contained in:
Ferdinand Majerech 2011-10-23 16:10:27 +02:00
parent 13ea5f0c24
commit 915428c8ed
5 changed files with 26 additions and 15 deletions

View file

@ -1,8 +1,9 @@
root-type: seq
documents: 2
complex-keys: false
min-nodes-per-document: 512
encoding: utf-32
collection-keys: false
min-nodes-per-document: 65536
encoding: utf-8
indent: 4
text-width: 40

View file

@ -155,7 +155,8 @@ Node genBinary(bool root = false)
Node nodes(in bool root, Node range, in string tag, in bool set = false)
{
auto types = typesCollection ~ (set ? typesScalarKey : typesScalar);
auto types = config["collection-keys"].as!bool ? typesCollection : [];
types ~= (set ? typesScalarKey : typesScalar);
Node[] nodes;
if(root)