mirror of
https://github.com/nlohmann/json.git
synced 2026-10-22 22:08:55 +00:00
As for the other formats: a member with a null, boolean, number, or string value is written by the loop over the members, without a call of write_bon8_value() for its value. A number above the int64 range, which BON8 cannot write (also with a number type wider than 64 bits), still goes through write_bon8_value(), which throws as before. Instructions per call (Linux, GCC 13, thousands), to_bon8: 20000 small objects 20741 -> 18164, twitter 5526 -> 5123, citm_catalog 7335 -> 7107. Signed-off-by: Niels Lohmann <mail@nlohmann.me>