Apache DataFusion SQL Query Engine
optimize build profile for datafusion python binding, cli and ballista (#1137)
QP Hou2eb2daada0bf
diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.ymlindex ed30928e96..6e54d12968 100644--- a/.github/workflows/python_build.yml+++ b/.github/workflows/python_build.yml@@ -106,6 +106,7 @@ jobs:- run: cat LICENSE.txt- name: Build wheelsrun: |+ export RUSTFLAGS='-C target-cpu=skylake'docker run --rm -v $(pwd)/..:/io \--workdir /io/python \konstin2/maturin:v0.11.2 \diff --git a/Cargo.toml b/Cargo.tomlindex d6da8c14cd..c722851e72 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -29,3 +29,7 @@ members = []exclude = ["python"]++[profile.release]+lto = true+codegen-units = 1diff --git a/python/Cargo.toml b/python/Cargo.tomlindex 5e0ab8d193..c0645a1520 100644--- a/python/Cargo.toml+++ b/python/Cargo.toml@@ -38,3 +38,7 @@ uuid = { version = "0.8", features = ["v4"] }[lib]name = "datafusion"crate-type = ["cdylib"]++[profile.release]+lto = true+codegen-units = 1