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
Is your feature request related to a problem or challenge?
The logical query optimizer does a fair bit of allocation. After profiling, two similar hotspots are in TreeNodeContainer: map_elements takes a closure, unboxes the inner value, invokes the closure, and then re-boxes the value in a fresh Box. It would be more efficient to just reuse the Box. Similarly for the Arc variant, as long as the Arc is unique.
Activity
neilconway commentedon Apr 20, 2026
take
[-]Reduce allocation churn in the optimizer[/-][+]Reduce allocation churn in tree rewriting[/+]perf: Reduce `Box` and `Arc` allocation churn during tree rewriting (a…