From af4245811a89f4122f1d5a68e52d541aa2491205 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Sat, 2 Aug 2014 23:28:45 +0200 Subject: [PATCH] yaml_gen optimization. --- examples/yaml_gen/yaml_gen.d | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/yaml_gen/yaml_gen.d b/examples/yaml_gen/yaml_gen.d index 625816d..68eb21c 100644 --- a/examples/yaml_gen/yaml_gen.d +++ b/examples/yaml_gen/yaml_gen.d @@ -163,6 +163,7 @@ Node nodes(const bool root, Node range, const string tag, const bool set = false { while(!(totalNodes >= minNodesDocument)) { + nodes.assumeSafeAppend; nodes ~= generateNode(randomType(types)); } }