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

[C++][Parquet] Minor: moving EncodedStats by default rather than copying #41726

Closed
mapleFU opened this issue May 20, 2024 · 1 comment
Closed

Comments

@mapleFU
Copy link
Member

mapleFU commented May 20, 2024

Describe the enhancement requested

Moving EncodedStats because it holds two std::string. This could benifit for non-SSO optimized data for FLBA/String statistics ( It seems to be useless for SSO optimized data?)

Component(s)

C++, Parquet

mapleFU added a commit that referenced this issue May 22, 2024
… than copying (#41727)

### Rationale for this change

Moving EncodedStats because it holds two std::string. This could benifit for non-SSO optimized data for FLBA/String statistics ( It seems to be useless for SSO optimized data?)

### What changes are included in this PR?

1. construct `EncodedStats` by `std::move`
2. Making uncompressing size checking ahead of compressing

### Are these changes tested?

Covered by existing.

### Are there any user-facing changes?

No

* GitHub Issue: #41726

Authored-by: mwish <maplewish117@gmail.com>
Signed-off-by: mwish <maplewish117@gmail.com>
@mapleFU mapleFU added this to the 17.0.0 milestone May 22, 2024
@mapleFU
Copy link
Member Author

mapleFU commented May 22, 2024

Issue resolved by pull request 41727
#41727

@mapleFU mapleFU closed this as completed May 22, 2024
vibhatha pushed a commit to vibhatha/arrow that referenced this issue May 25, 2024
…rather than copying (apache#41727)

### Rationale for this change

Moving EncodedStats because it holds two std::string. This could benifit for non-SSO optimized data for FLBA/String statistics ( It seems to be useless for SSO optimized data?)

### What changes are included in this PR?

1. construct `EncodedStats` by `std::move`
2. Making uncompressing size checking ahead of compressing

### Are these changes tested?

Covered by existing.

### Are there any user-facing changes?

No

* GitHub Issue: apache#41726

Authored-by: mwish <maplewish117@gmail.com>
Signed-off-by: mwish <maplewish117@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant