This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 11d03a3ab0 [thirdyparty] new thirdy party dragonbox (#24979)
11d03a3ab0 is described below
commit 11d03a3ab0606d0fdd0d24d645c1d8f16f32c722
Author: zhiqqqq <[email protected]>
AuthorDate: Thu Sep 28 13:42:44 2023 +0800
[thirdyparty] new thirdy party dragonbox (#24979)
---
thirdparty/build-thirdparty.sh | 16 ++++++++++++++++
thirdparty/vars.sh | 7 +++++++
2 files changed, 23 insertions(+)
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index f1eeb858c9..fd99b00213 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1701,6 +1701,21 @@ build_hadoop_libs() {
find ./hadoop-dist/target/hadoop-3.3.4/lib/native/ -type l -exec cp -P {}
"${TP_INSTALL_DIR}/lib/hadoop_hdfs/native/" \;
}
+# dragonbox
+build_dragonbox() {
+ check_if_source_exist "${DRAGONBOX_SOURCE}"
+ cd "${TP_SOURCE_DIR}/${DRAGONBOX_SOURCE}"
+
+ rm -rf "${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}"
+ cd "${BUILD_DIR}"
+
+ "${CMAKE_CMD}" -G "${GENERATOR}"
-DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" -DDRAGONBOX_INSTALL_TO_CHARS=ON ..
+
+ "${BUILD_SYSTEM}" -j "${PARALLEL}"
+ "${BUILD_SYSTEM}" install
+}
+
if [[ "${#packages[@]}" -eq 0 ]]; then
packages=(
libunixodbc
@@ -1763,6 +1778,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
concurrentqueue
fast_float
libunwind
+ dragonbox
)
if [[ "$(uname -s)" == 'Darwin' ]]; then
read -r -a packages <<<"binutils gettext ${packages[*]}"
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index 2431ac4756..4e17117b6f 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -478,6 +478,12 @@ HADOOP_LIBS_NAME="hadoop-3.3.4.5-for-doris.tar.gz"
HADOOP_LIBS_SOURCE="doris-thirdparty-hadoop-3.3.4.5-for-doris"
HADOOP_LIBS_MD5SUM="15b7be1747b27c37923b0cb9db6cff8c"
+# libdragonbox for faster double/float to string
+DRAGONBOX_DOWNLOAD="https://github.com/jk-jeon/dragonbox/archive/refs/tags/1.1.3.tar.gz"
+DRAGONBOX_NAME=dragonbox-1.1.3.tar.gz
+DRAGONBOX_SOURCE=dragonbox-1.1.3
+DRAGONBOX_MD5SUM="889dc00db9612c6949a4ccf8115e0e6a"
+
# all thirdparties which need to be downloaded is set in array TP_ARCHIVES
export TP_ARCHIVES=(
'LIBEVENT'
@@ -548,6 +554,7 @@ export TP_ARCHIVES=(
'CONCURRENTQUEUE'
'FAST_FLOAT'
'HADOOP_LIBS'
+ 'DRAGONBOX'
)
if [[ "$(uname -s)" == 'Darwin' ]]; then
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]