This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 4cfa3d098db [thirdyparty] new thirdy party dragonbox (#24979)
4cfa3d098db is described below
commit 4cfa3d098db633d5394c9017a99906065dde7295
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 895db73f326..e156500bcc6 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1618,6 +1618,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
@@ -1678,6 +1693,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 435434927fe..e9e891059e8 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -464,6 +464,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'
@@ -532,6 +538,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]