You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/04/09 02:01:15 UTC

[doris] 12/12: [Optimize](mutlti-catalog) Opt zlib performance by adding '-O3' cflags. (#18488)

This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 19f1f37433855f477b81b24834a43cd29d3c213e
Author: Qi Chen <ka...@gmail.com>
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 289856cc29..9b9642fff2 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -557,7 +557,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org