Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
The parser in this library implements a本库中的解析器实现了一种 https://en.wikipedia.org/wiki/Online_algorithm[__streaming algorithm__]; it can process JSON piece-by-piece, without the requirement that the entire input is available from the start. The parser uses a temporary memory allocation to do its work. If you plan on parsing multiple JSONs, for example in a network server, keeping the same parser instance will allow re-use of this temporary storage, improving performance.(流式算法);它可逐段处理 JSON,无需从一开始就提供完整输入。解析器在工作时会使用临时内存分配。如果计划解析多个 JSON(例如在网络服务器中),复用同一个解析器实例可以重用该临时存储,从而提升性能。