Added comment noting improved performance of non-pretty string conversion
This commit is contained in:
parent
edce0ca2ed
commit
f1343e52e0
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue