mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
Added comment noting improved performance of non-pretty string conversion
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user