Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The parser implementation uses temporary storage space to accumulate values during parsing. When using the <<ref_parse>> free functions, this storage is allocated and freed in each call. However, by declaring an instance of <<ref_parser>> or <<ref_stream_parser>>, this temporary storage can be reused when parsing more than one JSON text, reducing the total number of dynamic memory allocations.解析器实现使用临时存储空间在解析过程中累积值。使用 <<ref_parse>> 自由函数时,该存储在每次调用中都会被分配和释放。然而,通过声明一个 <<ref_parser>> 或 <<ref_stream_parser>> 实例,可在解析多个 JSON 文本时重用该临时存储,从而减少动态内存分配的总次数。</ref_stream_parser></ref_parser></ref_parse>