Files
json/tests
Niels Lohmann d60bd1dfc3 Make flatten() linear for ordered_json
json_pointer::flatten inserted every leaf with operator[], which searches
ordered_map linearly, so flatten() was quadratic (citm_catalog.json: 265 ms
vs 5 ms for json). Flattened paths are unique by construction, so
ordered_map gets emplace_new_key() to append a key known to be absent;
other object types still use operator[]. Parent pointers are set once at
the end for JSON_DIAGNOSTICS.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-14 22:18:59 +02:00
..
2026-09-27 16:56:21 +02:00