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

let ByteBuffer read 4 bytes as int in single call #594

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

bokken
Copy link
Contributor

@bokken bokken commented Aug 28, 2024

small performance improvement reading crc32c values in SnappyFramedInputStream by allowing the ByteBuffer to do the work. As these are direct ByteBuffer instances, this means only a single call across native boundary.

@bokken
Copy link
Contributor Author

bokken commented Sep 4, 2024

@xerial any chance to review?

@xerial xerial merged commit da1af8b into xerial:master Sep 10, 2024
7 checks passed
dongjoon-hyun pushed a commit to apache/spark that referenced this pull request Sep 11, 2024
### What changes were proposed in this pull request?
This pr aims to upgrade snappy-java from 1.1.10.6 to 1.1.10.7.

### Why are the changes needed?
The new version bring a small performance improvement reading crc32c values in SnappyFramedInputStream
- xerial/snappy-java#594

The full release notes as follows:
- https://github.com/xerial/snappy-java/releases/tag/v1.1.10.7

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass Github Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #48076 from LuciferYang/SPARK-49599.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### What changes were proposed in this pull request?
This pr aims to upgrade snappy-java from 1.1.10.6 to 1.1.10.7.

### Why are the changes needed?
The new version bring a small performance improvement reading crc32c values in SnappyFramedInputStream
- xerial/snappy-java#594

The full release notes as follows:
- https://github.com/xerial/snappy-java/releases/tag/v1.1.10.7

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass Github Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#48076 from LuciferYang/SPARK-49599.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@bokken bokken deleted the input_stream_crc32c_read branch October 5, 2024 14:00
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### What changes were proposed in this pull request?
This pr aims to upgrade snappy-java from 1.1.10.6 to 1.1.10.7.

### Why are the changes needed?
The new version bring a small performance improvement reading crc32c values in SnappyFramedInputStream
- xerial/snappy-java#594

The full release notes as follows:
- https://github.com/xerial/snappy-java/releases/tag/v1.1.10.7

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Pass Github Actions

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#48076 from LuciferYang/SPARK-49599.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants