GH-41726: [C++][Parquet] Minor: moving EncodedStats by default rather than copying
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?
- construct
EncodedStatsbystd::move - Making uncompressing size checking ahead of compressing
Are these changes tested?
Covered by existing.
Are there any user-facing changes?
No
- GitHub Issue: #41726
:warning: GitHub issue #41726 has been automatically assigned in GitHub to PR creator.
@pitrou this is a short pr, would you mind take a fast glance?
After merging your PR, Conbench analyzed the 7 benchmarking runs that have been run so far on merge-commit 8967ddc6d98584c88702c65763f33ec5f02324f7.
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.