crepererum opened a new pull request, #4116:
URL: https://github.com/apache/arrow-rs/pull/4116

   # Which issue does this PR close?
   \-
   
   # Rationale for this change
   `DataType` uses `Fields`/`FieldRef` internally. Accepting `Field` just to 
wrap it into an `Arc` is unnecessary expensive, esp. when the `Field` was 
cloned from an `FieldRef` (happens in some non-test code).
   
   I've decided to NOT allow the construction from `Field` anymore because in 
prod code this is most likely a performance bug.
   
   # What changes are included in this PR?
   Change `From` impls for `StructArray` to use `FieldRef` instead of `Field`.
   
   # Are there any user-facing changes?
   **Breaking:** Constructor changes.
   


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