Skip to content

Commit 831c98a

Browse files
committed
chore(cubesql): Set opt-level to 1 in dev debug builds
This avoids stack overflows in datafusion, caused by very inefficient Rust stack layout in opt-level 0, that makes the sql_expr_to_logical_expr function, called recursively, use 50KB stack frames. (Some other functions use 90KB or over 100KB, as well.)
1 parent b6abbb8 commit 831c98a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cubejs-backend-native/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ documentation = "https://cube.dev/docs"
99
homepage = "https://cube.dev"
1010
exclude = ["index.node"]
1111

12+
[profile.dev]
13+
opt-level = 1
14+
1215
[lib]
1316
crate-type = ["cdylib", "lib"]
1417

0 commit comments

Comments
 (0)