You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by "kostrzewa9ld (via GitHub)" <gi...@apache.org> on 2025/09/30 14:09:18 UTC
[D] Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector metadata [arrow]
GitHub user kostrzewa9ld created a discussion: Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector<RowGroup> metadata
I've noticed that in `FileMetaDataBuilderImpl::Finish()` there is a copy of `row_groups_` field done by passing it via `const&` to `metadata_->__set_row_groups(row_groups_)`. However, if it is assumed that after calling the `Finish()` method nothing should be touching the `row_groups_` field anymore then maybe it could be moved instead?
GitHub link: https://github.com/apache/arrow/discussions/47676
----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscribe@arrow.apache.org
Re: [D] Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector metadata [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
GitHub user raulcd added a comment to the discussion: Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector<RowGroup> metadata
In my opinion this makes sense, do you want to open an issue and submit a PR?
GitHub link: https://github.com/apache/arrow/discussions/47676#discussioncomment-14581798
----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscribe@arrow.apache.org
Re: [D] Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector metadata [arrow]
Posted by "kostrzewa9ld (via GitHub)" <gi...@apache.org>.
GitHub user kostrzewa9ld added a comment to the discussion: Semantics of FileMetaDataBuilder::Finish() and saving memory by moving std::vector<RowGroup> metadata
Sure, I will give it a try in a few days.
GitHub link: https://github.com/apache/arrow/discussions/47676#discussioncomment-14605250
----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscribe@arrow.apache.org