mapleFU opened a new issue, #55733:
URL: https://github.com/apache/arrow/issues/55733

   ### Describe the enhancement requested
   
   See https://github.com/apache/arrow/pull/55647
   
   ```
   I opened a small cleanup PR yesterday while getting familiar with the Arrow 
codebase. While continuing to read through the code, I noticed that some of the 
same patterns addressed in that PR were also present in other related code 
paths.
   
   The earlier PR fixed these patterns in one place, but similar cases remained 
elsewhere. This PR applies the same small improvements to those remaining 
occurrences.
   
   I also found that the Parquet metadata builder copied the complete row-group 
metadata vector when finalizing file metadata. Since the builder is finalizing 
its state at that point, the row-group metadata can be moved into the final 
Thrift structure instead. This avoids an unnecessary allocation and copy, 
particularly for files with many row groups.
   ```
   
   
   ### Component(s)
   
   C++, Parquet


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to