Files
json/include/nlohmann
Niels Lohmann a8e4e38284 Speed up container destruction, iterator access and diff()
- destroy: free a container whose children are all leaves in one go
  (object of 100k ints: 41.8 -> 17.4 ns/member); the walk stays
  non-recursive and allocation-free.
- iter_impl: check array, then object, before the type switch in
  ++, *, -> and ==; cold throws moved out of line (range-for over an
  array 2.5 -> 1.3 ns/element).
- diff(): one find per source key, lazily built "add" operations,
  children compared with == before building their path (diff of citm
  with 1% changes 1.09 -> 0.70 ms). Output is byte-identical.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
2026-10-14 22:19:07 +02:00
..
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00