yaml_gen optimization.
This commit is contained in:
parent
85b89d3323
commit
af4245811a
|
@ -163,6 +163,7 @@ Node nodes(const bool root, Node range, const string tag, const bool set = false
|
||||||
{
|
{
|
||||||
while(!(totalNodes >= minNodesDocument))
|
while(!(totalNodes >= minNodesDocument))
|
||||||
{
|
{
|
||||||
|
nodes.assumeSafeAppend;
|
||||||
nodes ~= generateNode(randomType(types));
|
nodes ~= generateNode(randomType(types));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue