Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
by gurkendoktor on Saturday November 15, 2014 @12:58AM
(#8610981)
That's correct in the worst case, but in the best case, std::string does not allocate memory anymore (short string optimisation), e.g. libc++: http://stackoverflow.com/a/21710033
So it might be "malloc-free" for configuration files where the possible values are limited, etc. :)
So it might be "malloc-free" for configuration files where the possible values are limited, etc. :)