Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Optimize PrestoBatchVectorSerializer [3/7]: Serialize ArrayVectors #12062

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kevinwilfong
Copy link
Contributor

Summary:
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 ArrayVectors.

Differential Revision: D68047629

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 11, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

Copy link

netlify bot commented Jan 11, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 93fecab
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67a68f10155df100088e51ed

@kevinwilfong kevinwilfong changed the title feat: Optimize PrestoBatchVectorSerializer [2/7]: Serialize ArrayVectors feat: Optimize PrestoBatchVectorSerializer [3/7]: Serialize ArrayVectors Jan 13, 2025
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 13, 2025
…ors (facebookincubator#12062)

Summary:
Pull Request resolved: facebookincubator#12062

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 ArrayVectors.

Differential Revision: D68047629
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 13, 2025
…ors (facebookincubator#12062)

Summary:
Pull Request resolved: facebookincubator#12062

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 13, 2025
…ors (facebookincubator#12062)

Summary:
Pull Request resolved: facebookincubator#12062

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 ArrayVectors.

Differential Revision: D68047629
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 13, 2025
…ors (facebookincubator#12062)

Summary:
Pull Request resolved: facebookincubator#12062

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 ArrayVectors.

Differential Revision: D68047629
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Jan 14, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Differential Revision: D68047629
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Reviewed By: xiaoxmeng

Differential Revision: D68047629
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68047629

kevinwilfong pushed a commit to kevinwilfong/velox that referenced this pull request Feb 7, 2025
…ors (facebookincubator#12062)

Summary:

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 ArrayVectors.

Reviewed By: xiaoxmeng

Differential Revision: D68047629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants