Update dom.md
Fixes diagrams URL in DOM
This commit is contained in:
parent
bcd935be87
commit
d6497d86f8
@ -166,11 +166,11 @@ In normal parsing process, a large overhead is to decode JSON strings and copy t
|
||||
|
||||
The following diagrams compare normal and *in situ* parsing. The JSON string values contain pointers to the decoded string.
|
||||
|
||||

|
||||

|
||||
|
||||
In normal parsing, the decoded string are copied to freshly allocated buffers. `"\\n"` (2 characters) is decoded as `"\n"` (1 character). `"\\u0073"` (6 characters) is decoded as "s" (1 character).
|
||||
|
||||

|
||||

|
||||
|
||||
*In situ* parsing just modified the original JSON. Updated characters are highlighted in the diagram. If the JSON string does not contain escape character, such as `"msg"`, the parsing process merely replace the closing double quotation mark with a null character.
|
||||
|
||||
@ -264,4 +264,4 @@ d.Parse(json);
|
||||
|
||||
If the total size of allocation is less than 1024 during parsing, this code does not invoke any heap allocation (via `new` or `malloc()`) at all.
|
||||
|
||||
User can query the current memory consumption in bytes via `MemoryPoolAllocator::Size()`. And then user can determine a suitable size of user buffer.
|
||||
User can query the current memory consumption in bytes via `MemoryPoolAllocator::Size()`. And then user can determine a suitable size of user buffer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user