liu
liu
## Motivation Fix #6439 ## Solution Adjust the order of code and make the count of `num_idle_threads` correct
**Version** Tokio v1.37.0 **Description** `BlockingPool num_idle_threads` is doubly increased, when shutting down before the `condvar wait_timeout`. The whole code is: https://github.com/tokio-rs/tokio/blob/9c337ca1a306be38e3474082be14bdef4bcb45b5/tokio/src/runtime/blocking/pool.rs#L519-L564 When `BlockingPool` is shutting down, the `num_idle_threads` will be...
Record possible optimizations and enhancements for sonic-cpp # Optimize: - [ ] use smallvec in parseimpl - [ ] port rust itoa # Enhancements - [ ] add JSON iterator...
JSON rfc not allow inf/nan numbers, we call add a flag to support the extension.
We need to add more examples for Document API into [example directory](https://github.com/bytedance/sonic-cpp/tree/master/example) The example should be like follows: ``` #include #include #include "sonic/sonic.h" int main() { using NodeType = sonic_json::Node;...
We need to add a pretty serialize API in dynamic node like https://github.com/bytedance/sonic-cpp/blob/master/include/sonic/dom/genericnode.h#L1000 Exist serialize implement is https://github.com/bytedance/sonic-cpp/blob/master/include/sonic/dom/serialize.h#L33
SAX handler is necessary because it consumes less memory and has fast performance. especially based on SIMD skip. Now, sonic-cpp's handler is designed to parse the whole json, and lazysax...
Now, initialization is complex as follows: ``` Document doc; doc.SetObject(); doc.AddMember(key, value); ``` Can we use the c++11 initialization list: ``` Document doc { {"a", "b"}, {"c", false}, {"d", {1,...
In order to parse JSON numbers with full precision and improve parsing performance, we propose adding a new `RawNumber` type for representing parsed JSON number values. The design of this...