nuno-faria opened a new pull request, #11830: URL: https://github.com/apache/arrow-rs/pull/11830
# Which issue does this PR close? - Related to https://github.com/apache/datafusion/issues/26606 # Rationale for this change The `set_source` method in `InProgressByteViewArray` computes the entire size, which is not needed since we only need to ensure that it is `> ideal_buffer_size * 2`. This can cause large slowdowns with string view columns in DataFusion: <img width="1393" height="396" alt="imagem" src="https://github.com/user-attachments/assets/c38360c2-fab5-4f98-a366-61a3e860dd3a" /> # What changes are included in this PR? - Optimized `set_source` with an early exit. # Are these changes tested? Existing tests. # Are there any significant user-facing changes? No. -- 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]
