json/test/src
Niels Lohmann 224f99070b
micro-optimization of dump()
A lot of small changes to avoid memory allocations:

- The locale is only queried once rather than with every number
serialization.
- The indentation string is recycled between different calls.
- The string escape function avoids a copy if no escaping is necessary.
- The string escape and the space function use a complete switch case
instead of cascaded ifs.

Cachegrind measures some 15% performance improvement.
2017-02-28 16:28:22 +01:00
..
fuzzer-driver_afl.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
fuzzer-parse_cbor.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
fuzzer-parse_json.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
fuzzer-parse_msgpack.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
prefix.hpp cmake compile time reduce using cotire 2017-02-19 13:35:54 +05:30
unit-algorithms.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-allocator.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-capacity.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-cbor.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-class_const_iterator.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-class_iterator.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-class_lexer.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-class_parser.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-comparison.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-concepts.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-constructor1.cpp added missing tests 2017-02-26 11:50:52 +01:00
unit-constructor2.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-convenience.cpp micro-optimization of dump() 2017-02-28 16:28:22 +01:00
unit-conversions.cpp added missing tests 2017-02-26 11:50:52 +01:00
unit-deserialization.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-element_access1.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-element_access2.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-inspection.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-iterator_wrapper.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-iterators1.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-iterators2.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-json_patch.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-json_pointer.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-meta.cpp more tests for meta() call 2017-02-26 14:34:58 +01:00
unit-modifiers.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-msgpack.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-noexcept.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-pointer_access.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-readme.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-reference_access.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-regression.cpp added missing tests 2017-02-26 11:50:52 +01:00
unit-serialization.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-testsuites.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-udt.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit-unicode.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00
unit.cpp 🔖 version 2.1.1 2017-02-25 16:34:38 +01:00