diff --git a/.gitmodules b/.gitmodules index 021da59cf22..89b90ab67dc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -140,3 +140,6 @@ [submodule "contrib/qpl"] path = contrib/qpl url = https://github.com/intel/qpl.git +[submodule "contrib/simdjson"] + path = contrib/simdjson + url = https://github.com/simdjson/simdjson diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 1794f4c3937..77f3c1994c8 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -187,3 +187,5 @@ endif () add_subdirectory(magic_enum) add_subdirectory(aws-cmake) + +add_subdirectory(simdjson) diff --git a/contrib/simdjson b/contrib/simdjson new file mode 160000 index 00000000000..17cb457ffd0 --- /dev/null +++ b/contrib/simdjson @@ -0,0 +1 @@ +Subproject commit 17cb457ffd017a354fd0d3361da4ea21311722dc diff --git a/dbms/CMakeLists.txt b/dbms/CMakeLists.txt index d3f06952d14..e21a7e0a169 100644 --- a/dbms/CMakeLists.txt +++ b/dbms/CMakeLists.txt @@ -184,6 +184,7 @@ target_link_libraries (tiflash_common_io prometheus-cpp::pull cpptoml magic_enum + simdjson libsymbolization ${RE2_LIBRARY} ${RE2_ST_LIBRARY} diff --git a/dbms/src/Common/SIMDJsonParser.h b/dbms/src/Common/SIMDJsonParser.h new file mode 100644 index 00000000000..364622b26ce --- /dev/null +++ b/dbms/src/Common/SIMDJsonParser.h @@ -0,0 +1,26 @@ +// Copyright 2023 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace DB +{ +class SimdJSONParser +{ +public: +private: +}; +}