You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(duckdb): reduce branching factor for ArrayDistinct
If I do something like `some_really_complex_array_expression.unique()`, then the SQL for `some_really_complex_array_expression` was duplicated 4 times. Now it is only duplicated 3 times.
This is important for perf, because duckdb sometimes appears to not be smart, and actually does a computation for each time a subexpression appears.
See duckdb/duckdb#14649.
So this can reduce the computation time to 3/4 of what it was.
I want to go through our other compilation steps and do similar optimizations whenever possible.
0 commit comments