LuciferYang opened a new issue, #13722: URL: https://github.com/apache/gluten/issues/13722
### Description `VeloxColumnarBatchSerializer::framedSerializeV3Impl` builds the frame for each batch the Velox table cache writes in its default V3 format. For each column it calls `serializeSingleColumn` into a `std::ostringstream`, copies the result out with `str()`, copies that string into a `std::vector<uint8_t>`, and then inserts the vector into the frame. Each column is copied four times, and the copies of all columns stay alive until the frame is assembled. `serializeSingleColumn` only appends to its output stream, so each column can be written straight into the frame and its length prefix filled in afterwards. On a 1M-row, 8-column batch (66 MB frame), `framedSerializeV3` drops from 29.0 ms to 19.8 ms with that change. This issue was written with the assistance of AI (Claude Opus). ### Gluten version main branch -- 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]
