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

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

Merged
merged 2 commits into from
May 22, 2024

Conversation

mapleFU
Copy link
Member

@mapleFU mapleFU commented May 20, 2024

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

@mapleFU mapleFU requested a review from wgtmac as a code owner May 20, 2024 10:38
Copy link

⚠️ GitHub issue #41726 has been automatically assigned in GitHub to PR creator.

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

It seems that we don't need to add "minor" in the PR title

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels May 21, 2024
@mapleFU mapleFU requested a review from pitrou May 22, 2024 09:42
@mapleFU
Copy link
Member Author

mapleFU commented May 22, 2024

@pitrou this is a short pr, would you mind take a fast glance?

@mapleFU mapleFU merged commit 8967ddc into apache:main May 22, 2024
32 of 34 checks passed
@mapleFU mapleFU removed the awaiting committer review Awaiting committer review label May 22, 2024
@mapleFU mapleFU deleted the minor/enhancement branch May 22, 2024 16:36
Copy link

After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 8967ddc.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 10 possible false positives for unstable benchmarks that are known to sometimes produce them.

vibhatha pushed a commit to vibhatha/arrow that referenced this pull request 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

Successfully merging this pull request may close these issues.

3 participants