HuaHuaY opened a new pull request, #55306:
URL: https://github.com/apache/arrow/pull/55306

   ### Rationale for this change
   
   Avoid two unnecessary buffer copies.
   
   ### What changes are included in this PR?
   
   1. `BuildDataPageV1` uses the values buffer directly when there are no 
definition or repetition levels.
   2. `BuildDataPageV2` removes the unnecessarily copy of `combined` when 
buffering dictionary-encoded pages.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   **PR code and description written by:**
   
   - [x] Human
   - [x] AI
   
   **Reviewed before submission by:**
   
   - [x] Human
   - [ ] AI
   - [ ] Not reviewed
   


-- 
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