alamb commented on issue #14610: URL: https://github.com/apache/datafusion/issues/14610#issuecomment-2654015159
Thanks @zjregee > This seems to work well when the number of repetitions is small, because it reduces the number of memory copies, but when the number of repetitions is large, the repeated memory expansion will lead to performance degradation. Is there any way to increase the capacity of StringBuilder, like [`Vec::reserve`](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.reserve) ? If not maybe we could add that API upstream 🤔 -- 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