ggjh-159 opened a new issue, #13679: URL: https://github.com/apache/gluten/issues/13679
### Description `GlutenStatefulRecordSerializer` puts `RowVector.serialize()` bytes on Flink network edges (shuffle/state). Every record batch on this path currently pays three stacked costs: 1. **A debug-grade serialization format.** `RowVector.serialize()` is backed by velox's `VectorSaver`, a self-describing full dump of the vector layout (per-vector headers, verbatim buffers), not a production columnar format. Measured on the GFV network-edge shape (row of int/bigint/double/varchar, 100k rows, single thread, aarch64): ~11 ms to serialize and ~31 ms to deserialize one batch through the JNI serde, with a 5.3 MB payload. 2. **A base64 text detour for binary data.** The JNI contract is a base64 String, so the wire carries 4/3 of the payload — ~7.0 MB per 100k-row batch where 5.3 MB of actual data moves. 3. **Redundant copies inside the serializer itself.** `serialize()` materializes the String and copies it again via `getBytes()` before writing to the `DataOutputView`; `deserialize()` wraps the read bytes in `new String(...)` before handing them to `deserializeOne`. Two extra full-payload copies per batch, on top of the encode/decode. Proposed direction: back the vector serde with velox's production presto columnar shuffle format (`PrestoVectorSerde` batch serializer, which preserves dictionary/RLE encodings) instead of the `VectorSaver` dump, cross the JNI boundary as a raw `byte[]` instead of a base64 String, and pass that byte array end to end in `GlutenStatefulRecordSerializer` with no String intermediate. ### 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]
