alamb commented on issue #11413: URL: https://github.com/apache/datafusion/issues/11413#issuecomment-2348996131
> adapting &MutableBuffer to &std::fmt::Write with another throw-away struct is optimized away by the compiler. (and we also can rustly do impl std::fmt::Write for MutableBuffer). This means we should be able to provide zero-cost[3](https://mail.google.com/mail/u/0/#m_1969400085257111369_user-content-fn-1-b3639a03f5650413ff10917bade233e4) abstraction where function logic is implemented as BTW `StringBuilder` already implements `Write` https://docs.rs/arrow/latest/arrow/array/builder/type.GenericStringBuilder.html We are discussing something similar here: - [ ] https://github.com/apache/arrow-rs/issues/6373 -- 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]
