Dandandan commented on pull request #341:
URL: https://github.com/apache/arrow-rs/pull/341#issuecomment-849533994


   This PR and benchmark got me thinking - it is faster to clone an array than 
to create the equivalent null array from scratch (as can be seen in micro 
benchmarks above).
   But we could clone the contents of the array and only create the zeroed null 
buffer.
   
   It can increase memory usage though - as the contents might be big, for 
string arrays, which could be deallocated otherwise if it has a reference count 
of 0.


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

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


Reply via email to