-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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-37453: [C++][Parquet] Performance fix for WriteBatch #37454
Conversation
Compute the value for pages_change_on_record_boundaries on construction rather than on each call, as this adds a lot of overhead.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @wgtmac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @adamreeve . LGTM.
After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit f40bf77. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them. |
…#37454) ### Rationale for this change Reduces the time taken for `TypedColumnWriter::WriteBatch`, which regressed with apache#35230 ### What changes are included in this PR? This change computes the value for `pages_change_on_record_boundaries` once when a `TypedColumnWriter` is constructed rather than on every call to `WriteBatch`. ### Are these changes tested? This doesn't change behaviour so should be covered by existing tests. ### Are there any user-facing changes? No * Closes: apache#37453 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
…#37454) ### Rationale for this change Reduces the time taken for `TypedColumnWriter::WriteBatch`, which regressed with apache#35230 ### What changes are included in this PR? This change computes the value for `pages_change_on_record_boundaries` once when a `TypedColumnWriter` is constructed rather than on every call to `WriteBatch`. ### Are these changes tested? This doesn't change behaviour so should be covered by existing tests. ### Are there any user-facing changes? No * Closes: apache#37453 Authored-by: Adam Reeve <adreeve@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
Rationale for this change
Reduces the time taken for
TypedColumnWriter::WriteBatch
, which regressed with #35230What changes are included in this PR?
This change computes the value for
pages_change_on_record_boundaries
once when aTypedColumnWriter
is constructed rather than on every call toWriteBatch
.Are these changes tested?
This doesn't change behaviour so should be covered by existing tests.
Are there any user-facing changes?
No