This is an automated email from the ASF dual-hosted git repository.
morningman 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 04af1650e5 [Optimize](mutlti-catalog) Opt zlib performance by adding
'-O3' cflags. (#18488)
04af1650e5 is described below
commit 04af1650e5d49f638baa2399891ee10e05856044
Author: Qi Chen <[email protected]>
AuthorDate: Sun Apr 9 08:52:48 2023 +0800
[Optimize](mutlti-catalog) Opt zlib performance by adding '-O3' cflags.
(#18488)
Opt zlib performance by adding '-O3' cflags.
From orc' reader test, it has 2.5x performance boost.
---
thirdparty/build-thirdparty.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 5b365033fd..144d6ba1c8 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -559,7 +559,7 @@ build_zlib() {
check_if_source_exist "${ZLIB_SOURCE}"
cd "${TP_SOURCE_DIR}/${ZLIB_SOURCE}"
- CFLAGS="-fPIC" \
+ CFLAGS="-O3 -fPIC" \
CPPFLAGS="-I${TP_INCLUDE_DIR}" \
LDFLAGS="-L${TP_LIB_DIR}" \
./configure --prefix="${TP_INSTALL_DIR}" --static
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]