alamb commented on issue #14610: URL: https://github.com/apache/datafusion/issues/14610#issuecomment-2654019734
Hi @zjregee -- would it be possible to iterate through the input once and calculate how much space is needed and then create a StringBuilder with the appropriate capacity via [`StringBuilder::with_capacity`](https://docs.rs/arrow/latest/arrow/array/struct.GenericByteBuilder.html#tymethod.with_capacity) ? -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org