mustafasrepo commented on issue #9577: URL: https://github.com/apache/arrow-datafusion/issues/9577#issuecomment-1993968655
> ~Is it possible to remove Box to lower the cost?~ It seems we need to deal with recursive types > > Summary for my note: > > 1. whether `Box<T>` does shallow copy or deep copy depends on T, not always deep copy. > 2. `Rc<T> / Arc<T>` has overhead so whether they are faster than `Box<T>` may need benchmarks to ensure that. Exactly. I also think that there are pros and cons of these approaches. For recursive types, I think deep clone problem is more evident. -- 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]
