Added comment noting improved performance of non-pretty string conversion

This commit is contained in:
onionhammer
2015-05-16 12:33:00 -05:00
parent edce0ca2ed
commit f1343e52e0

View File

@@ -951,7 +951,8 @@ proc pretty*(node: JsonNode, indent = 2): string =
proc toUgly*(result: var string, node: JsonNode) =
## Converts `node` to its JSON Representation, without
## regard for human readability.
## regard for human readability. Meant to improve '$' string
## conversion performance.
var comma = false
case node.kind:
of JArray: