├── .clang-format ├── .github └── workflows │ ├── clang-format-check.yml │ ├── test_coverage.yml │ └── test_x86.yml ├── .gitignore ├── BUILD.bazel ├── CMakeLists.txt ├── CONTRIBUTING.md ├── Doxyfile ├── LICENSE ├── MODULE.bazel ├── README.md ├── WORKSPACE.bzlmod ├── bazel ├── cJSON.BUILD ├── gflags.BUILD ├── gtest.BUILD ├── rapidjson.BUILD ├── simdjson.BUILD └── yyjson.BUILD ├── benchmark ├── CMakeLists.txt ├── cjson.hpp ├── json.h ├── jsoncpp.hpp ├── main.cpp ├── ondemand.hpp ├── rapidjson.hpp ├── rapidjson_sax.hpp ├── simdjson.hpp ├── sonic.hpp └── yyjson.hpp ├── cmake ├── external.cmake └── set_arch_flags.cmake ├── docs ├── images │ ├── compare_Decode.png │ ├── compare_Encode.png │ ├── dom.png │ ├── parse.png │ └── serialize.png └── usage.md ├── example ├── CMakeLists.txt ├── addmember.cpp ├── at_pointer.cpp ├── check_error_offset.cpp ├── create_and_destroy_map.cpp ├── get_and_set.cpp ├── parse_and_serialize.cpp ├── parse_ondemand.cpp └── parse_schema.cpp ├── fuzz ├── CMakeLists.txt └── fuzz.cpp ├── include ├── sonic │ ├── allocator.h │ ├── dom │ │ ├── dynamicnode.h │ │ ├── flags.h │ │ ├── generic_document.h │ │ ├── genericnode.h │ │ ├── handler.h │ │ ├── json_pointer.h │ │ ├── parser.h │ │ ├── schema_handler.h │ │ ├── serialize.h │ │ └── type.h │ ├── error.h │ ├── experiment │ │ └── lazy_update.h │ ├── internal │ │ ├── arch │ │ │ ├── avx2 │ │ │ │ ├── base.h │ │ │ │ ├── itoa.h │ │ │ │ ├── quote.h │ │ │ │ ├── simd.h │ │ │ │ ├── skip.h │ │ │ │ ├── str2int.h │ │ │ │ └── unicode.h │ │ │ ├── common │ │ │ │ ├── arm_common │ │ │ │ │ ├── base.h │ │ │ │ │ ├── itoa.h │ │ │ │ │ ├── quote.h │ │ │ │ │ ├── simd.h │ │ │ │ │ ├── skip.inc.h │ │ │ │ │ └── str2int.h │ │ │ │ ├── quote_common.h │ │ │ │ ├── quote_tables.h │ │ │ │ ├── skip_common.h │ │ │ │ ├── unicode_common.h │ │ │ │ └── x86_common │ │ │ │ │ ├── itoa.h │ │ │ │ │ ├── quote.inc.h │ │ │ │ │ └── skip.inc.h │ │ │ ├── neon │ │ │ │ ├── base.h │ │ │ │ ├── itoa.h │ │ │ │ ├── quote.h │ │ │ │ ├── simd.h │ │ │ │ ├── skip.h │ │ │ │ ├── str2int.h │ │ │ │ └── unicode.h │ │ │ ├── simd_base.h │ │ │ ├── simd_dispatch.h │ │ │ ├── simd_itoa.h │ │ │ ├── simd_quote.h │ │ │ ├── simd_skip.h │ │ │ ├── simd_str2int.h │ │ │ ├── sonic_cpu_feature.h │ │ │ ├── sse │ │ │ │ ├── base.h │ │ │ │ ├── itoa.h │ │ │ │ ├── quote.h │ │ │ │ ├── simd.h │ │ │ │ ├── skip.h │ │ │ │ ├── str2int.h │ │ │ │ └── unicode.h │ │ │ ├── sve2-128 │ │ │ │ ├── base.h │ │ │ │ ├── itoa.h │ │ │ │ ├── quote.h │ │ │ │ ├── simd.h │ │ │ │ ├── skip.h │ │ │ │ ├── str2int.h │ │ │ │ └── unicode.h │ │ │ └── x86_ifuncs │ │ │ │ ├── base.h │ │ │ │ ├── itoa.h │ │ │ │ ├── quote.h │ │ │ │ ├── skip.h │ │ │ │ └── str2int.h │ │ ├── atof_native.h │ │ ├── ftoa.h │ │ ├── itoa.h │ │ ├── parse_number_normal_fast.h │ │ ├── stack.h │ │ └── utils.h │ ├── macro.h │ ├── sonic.h │ ├── string_view.h │ └── writebuffer.h └── thirdparty │ ├── .clang-format │ └── string-view-lite │ └── string_view.h ├── licenses ├── LICENSE-Drachennest ├── LICENSE-golang ├── LICENSE-rapidjson ├── LICENSE-ryu ├── LICENSE-simdjson ├── LICENSE-string-view-lite └── LICENSE-yyjson ├── scripts ├── run_cmake.sh ├── run_coverage.sh ├── tools │ ├── draw-decode-encode.py │ ├── draw-png.py │ └── requirements.txt └── unittest.sh ├── testdata ├── book.json ├── canada.json ├── citm_catalog.json ├── fgo.json ├── github_events.json ├── gsoc-2018.json ├── lottie.json ├── num │ ├── float-1.txt │ ├── float-4.txt │ └── float-8.txt ├── otfcc.json ├── poet.json ├── twitter.json └── twitterescaped.json └── tests ├── CMakeLists.txt ├── allocator_test.cpp ├── assert_test.cpp ├── document_test.cpp ├── error_test.cpp ├── exp_update_test.cpp ├── ftoa_test.cpp ├── itoa_test.cpp ├── json_pointer_test.cpp ├── memcmp_test.cpp ├── node_test.cpp ├── parse_schema_test.cpp ├── parsenumber_test.cpp ├── quote_test.cpp ├── skip_test.cpp ├── string_view_test.cpp └── writebuffer_test.cpp /.clang-format: -------------------------------------------------------------------------------- 1 | BasedOnStyle: Google 2 | -------------------------------------------------------------------------------- /.github/workflows/clang-format-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/.github/workflows/clang-format-check.yml -------------------------------------------------------------------------------- /.github/workflows/test_coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/.github/workflows/test_coverage.yml -------------------------------------------------------------------------------- /.github/workflows/test_x86.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/.github/workflows/test_x86.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/.gitignore -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/BUILD.bazel -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Doxyfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/Doxyfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/LICENSE -------------------------------------------------------------------------------- /MODULE.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/MODULE.bazel -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/README.md -------------------------------------------------------------------------------- /WORKSPACE.bzlmod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/WORKSPACE.bzlmod -------------------------------------------------------------------------------- /bazel/cJSON.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/cJSON.BUILD -------------------------------------------------------------------------------- /bazel/gflags.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/gflags.BUILD -------------------------------------------------------------------------------- /bazel/gtest.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/gtest.BUILD -------------------------------------------------------------------------------- /bazel/rapidjson.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/rapidjson.BUILD -------------------------------------------------------------------------------- /bazel/simdjson.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/simdjson.BUILD -------------------------------------------------------------------------------- /bazel/yyjson.BUILD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/bazel/yyjson.BUILD -------------------------------------------------------------------------------- /benchmark/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/CMakeLists.txt -------------------------------------------------------------------------------- /benchmark/cjson.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/cjson.hpp -------------------------------------------------------------------------------- /benchmark/json.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/json.h -------------------------------------------------------------------------------- /benchmark/jsoncpp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/jsoncpp.hpp -------------------------------------------------------------------------------- /benchmark/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/main.cpp -------------------------------------------------------------------------------- /benchmark/ondemand.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/ondemand.hpp -------------------------------------------------------------------------------- /benchmark/rapidjson.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/rapidjson.hpp -------------------------------------------------------------------------------- /benchmark/rapidjson_sax.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/rapidjson_sax.hpp -------------------------------------------------------------------------------- /benchmark/simdjson.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/simdjson.hpp -------------------------------------------------------------------------------- /benchmark/sonic.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/sonic.hpp -------------------------------------------------------------------------------- /benchmark/yyjson.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/benchmark/yyjson.hpp -------------------------------------------------------------------------------- /cmake/external.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/cmake/external.cmake -------------------------------------------------------------------------------- /cmake/set_arch_flags.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/cmake/set_arch_flags.cmake -------------------------------------------------------------------------------- /docs/images/compare_Decode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/images/compare_Decode.png -------------------------------------------------------------------------------- /docs/images/compare_Encode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/images/compare_Encode.png -------------------------------------------------------------------------------- /docs/images/dom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/images/dom.png -------------------------------------------------------------------------------- /docs/images/parse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/images/parse.png -------------------------------------------------------------------------------- /docs/images/serialize.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/images/serialize.png -------------------------------------------------------------------------------- /docs/usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/docs/usage.md -------------------------------------------------------------------------------- /example/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/addmember.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/addmember.cpp -------------------------------------------------------------------------------- /example/at_pointer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/at_pointer.cpp -------------------------------------------------------------------------------- /example/check_error_offset.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/check_error_offset.cpp -------------------------------------------------------------------------------- /example/create_and_destroy_map.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/create_and_destroy_map.cpp -------------------------------------------------------------------------------- /example/get_and_set.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/get_and_set.cpp -------------------------------------------------------------------------------- /example/parse_and_serialize.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/parse_and_serialize.cpp -------------------------------------------------------------------------------- /example/parse_ondemand.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/parse_ondemand.cpp -------------------------------------------------------------------------------- /example/parse_schema.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/example/parse_schema.cpp -------------------------------------------------------------------------------- /fuzz/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/fuzz/CMakeLists.txt -------------------------------------------------------------------------------- /fuzz/fuzz.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/fuzz/fuzz.cpp -------------------------------------------------------------------------------- /include/sonic/allocator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/allocator.h -------------------------------------------------------------------------------- /include/sonic/dom/dynamicnode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/dynamicnode.h -------------------------------------------------------------------------------- /include/sonic/dom/flags.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/flags.h -------------------------------------------------------------------------------- /include/sonic/dom/generic_document.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/generic_document.h -------------------------------------------------------------------------------- /include/sonic/dom/genericnode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/genericnode.h -------------------------------------------------------------------------------- /include/sonic/dom/handler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/handler.h -------------------------------------------------------------------------------- /include/sonic/dom/json_pointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/json_pointer.h -------------------------------------------------------------------------------- /include/sonic/dom/parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/parser.h -------------------------------------------------------------------------------- /include/sonic/dom/schema_handler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/schema_handler.h -------------------------------------------------------------------------------- /include/sonic/dom/serialize.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/serialize.h -------------------------------------------------------------------------------- /include/sonic/dom/type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/dom/type.h -------------------------------------------------------------------------------- /include/sonic/error.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/error.h -------------------------------------------------------------------------------- /include/sonic/experiment/lazy_update.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/experiment/lazy_update.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/simd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/simd.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/avx2/unicode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/avx2/unicode.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/simd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/simd.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/skip.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/skip.inc.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/arm_common/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/arm_common/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/quote_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/quote_common.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/quote_tables.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/quote_tables.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/skip_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/skip_common.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/unicode_common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/unicode_common.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/x86_common/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/x86_common/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/x86_common/quote.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/x86_common/quote.inc.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/common/x86_common/skip.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/common/x86_common/skip.inc.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/simd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/simd.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/neon/unicode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/neon/unicode.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_dispatch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_dispatch.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/simd_str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/simd_str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sonic_cpu_feature.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sonic_cpu_feature.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/simd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/simd.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sse/unicode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sse/unicode.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/simd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/simd.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/sve2-128/unicode.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/sve2-128/unicode.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/x86_ifuncs/base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/x86_ifuncs/base.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/x86_ifuncs/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/x86_ifuncs/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/x86_ifuncs/quote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/x86_ifuncs/quote.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/x86_ifuncs/skip.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/x86_ifuncs/skip.h -------------------------------------------------------------------------------- /include/sonic/internal/arch/x86_ifuncs/str2int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/arch/x86_ifuncs/str2int.h -------------------------------------------------------------------------------- /include/sonic/internal/atof_native.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/atof_native.h -------------------------------------------------------------------------------- /include/sonic/internal/ftoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/ftoa.h -------------------------------------------------------------------------------- /include/sonic/internal/itoa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/itoa.h -------------------------------------------------------------------------------- /include/sonic/internal/parse_number_normal_fast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/parse_number_normal_fast.h -------------------------------------------------------------------------------- /include/sonic/internal/stack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/stack.h -------------------------------------------------------------------------------- /include/sonic/internal/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/internal/utils.h -------------------------------------------------------------------------------- /include/sonic/macro.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/macro.h -------------------------------------------------------------------------------- /include/sonic/sonic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/sonic.h -------------------------------------------------------------------------------- /include/sonic/string_view.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/string_view.h -------------------------------------------------------------------------------- /include/sonic/writebuffer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/sonic/writebuffer.h -------------------------------------------------------------------------------- /include/thirdparty/.clang-format: -------------------------------------------------------------------------------- 1 | DisableFormat: true 2 | SortIncludes: false 3 | -------------------------------------------------------------------------------- /include/thirdparty/string-view-lite/string_view.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/include/thirdparty/string-view-lite/string_view.h -------------------------------------------------------------------------------- /licenses/LICENSE-Drachennest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-Drachennest -------------------------------------------------------------------------------- /licenses/LICENSE-golang: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-golang -------------------------------------------------------------------------------- /licenses/LICENSE-rapidjson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-rapidjson -------------------------------------------------------------------------------- /licenses/LICENSE-ryu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-ryu -------------------------------------------------------------------------------- /licenses/LICENSE-simdjson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-simdjson -------------------------------------------------------------------------------- /licenses/LICENSE-string-view-lite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-string-view-lite -------------------------------------------------------------------------------- /licenses/LICENSE-yyjson: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/licenses/LICENSE-yyjson -------------------------------------------------------------------------------- /scripts/run_cmake.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/scripts/run_cmake.sh -------------------------------------------------------------------------------- /scripts/run_coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/scripts/run_coverage.sh -------------------------------------------------------------------------------- /scripts/tools/draw-decode-encode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/scripts/tools/draw-decode-encode.py -------------------------------------------------------------------------------- /scripts/tools/draw-png.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/scripts/tools/draw-png.py -------------------------------------------------------------------------------- /scripts/tools/requirements.txt: -------------------------------------------------------------------------------- 1 | numpy 2 | matplotlib 3 | -------------------------------------------------------------------------------- /scripts/unittest.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/scripts/unittest.sh -------------------------------------------------------------------------------- /testdata/book.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/book.json -------------------------------------------------------------------------------- /testdata/canada.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/canada.json -------------------------------------------------------------------------------- /testdata/citm_catalog.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/citm_catalog.json -------------------------------------------------------------------------------- /testdata/fgo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/fgo.json -------------------------------------------------------------------------------- /testdata/github_events.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/github_events.json -------------------------------------------------------------------------------- /testdata/gsoc-2018.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/gsoc-2018.json -------------------------------------------------------------------------------- /testdata/lottie.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/lottie.json -------------------------------------------------------------------------------- /testdata/num/float-1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/num/float-1.txt -------------------------------------------------------------------------------- /testdata/num/float-4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/num/float-4.txt -------------------------------------------------------------------------------- /testdata/num/float-8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/num/float-8.txt -------------------------------------------------------------------------------- /testdata/otfcc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/otfcc.json -------------------------------------------------------------------------------- /testdata/poet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/poet.json -------------------------------------------------------------------------------- /testdata/twitter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/twitter.json -------------------------------------------------------------------------------- /testdata/twitterescaped.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/testdata/twitterescaped.json -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/allocator_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/allocator_test.cpp -------------------------------------------------------------------------------- /tests/assert_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/assert_test.cpp -------------------------------------------------------------------------------- /tests/document_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/document_test.cpp -------------------------------------------------------------------------------- /tests/error_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/error_test.cpp -------------------------------------------------------------------------------- /tests/exp_update_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/exp_update_test.cpp -------------------------------------------------------------------------------- /tests/ftoa_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/ftoa_test.cpp -------------------------------------------------------------------------------- /tests/itoa_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/itoa_test.cpp -------------------------------------------------------------------------------- /tests/json_pointer_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/json_pointer_test.cpp -------------------------------------------------------------------------------- /tests/memcmp_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/memcmp_test.cpp -------------------------------------------------------------------------------- /tests/node_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/node_test.cpp -------------------------------------------------------------------------------- /tests/parse_schema_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/parse_schema_test.cpp -------------------------------------------------------------------------------- /tests/parsenumber_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/parsenumber_test.cpp -------------------------------------------------------------------------------- /tests/quote_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/quote_test.cpp -------------------------------------------------------------------------------- /tests/skip_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/skip_test.cpp -------------------------------------------------------------------------------- /tests/string_view_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/string_view_test.cpp -------------------------------------------------------------------------------- /tests/writebuffer_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bytedance/sonic-cpp/HEAD/tests/writebuffer_test.cpp --------------------------------------------------------------------------------