Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Optimize PrestoBatchVectorSerializer [1/7]: Serialize FlatVecto…
…rs (facebookincubator#12060) Summary: Pull Request resolved: facebookincubator#12060 Context: This is a series of diffs in which I reimplement PrestoBatchVectorSerializer to write directly to the output stream, rather than the indirect route it currently uses via VectorStreams. Reusing VectorStreams and much of the code for PrestoIterativeVectorSerializer prevented us from capturing all of the performance benefits of writing data in batches rather than row by row. These changes combined will speed up PrestoBatchVectorSerializer 2-3x (as measured in Presto queries and other use cases). In the final diff I will integrate the new serialization functions into PrestoBatchVectorSerializer's serialize function which will switch it to the new optimized writing path, therefore I will land these changes as a stack. In this diff: I provide the implementations for serializing FlatVectors. Differential Revision: D68037258
- Loading branch information