neilconway opened a new issue, #21751:
URL: https://github.com/apache/datafusion/issues/21751

   ### 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.
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to