mirror of
https://github.com/nlohmann/json.git
synced 2026-10-22 22:08:55 +00:00
object_member() looked a key up and, if it was missing, inserted it with operator[], which searches again. Objects that can find the position of a key and insert there (std::map) now do both with one search; other object types are unchanged. A key that exists is not copied, as before. unflatten() (instructions on macOS, Linux Ir GCC 13 / Clang 18): twitter 25.8M -> 24.2M, 24.9M -> 21.8M / 24.8M -> 21.5M; citm_catalog 43.4M -> 43.5M, 38.9M -> 37.0M / 39.6M -> 37.5M; canada unchanged. Signed-off-by: Niels Lohmann <mail@nlohmann.me>