This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-11410-6b34163d51aa59f7cac2edcb74e8bd1ddc6b9120
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git

commit 8bdf349ae69196d757cd0f6e3df4b9651fbc445d
Author: Raz Luvaton <[email protected]>
AuthorDate: Wed Oct 7 01:24:02 2026 +0000

    chore: use extend_from_slice rather than extend (#11410)
    
    # Which issue does this PR close?
    
    None
    
    # Rationale for this change
    
    should be faster
    
    # What changes are included in this PR?
    
    see title
    
    # Are these changes tested?
    existing tests
    
    # Are there any significant user-facing changes?
    no
---
 parquet/src/encodings/encoding/byte_stream_split_encoder.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parquet/src/encodings/encoding/byte_stream_split_encoder.rs 
b/parquet/src/encodings/encoding/byte_stream_split_encoder.rs
index 0726c6b1c9..9486e13da5 100644
--- a/parquet/src/encodings/encoding/byte_stream_split_encoder.rs
+++ b/parquet/src/encodings/encoding/byte_stream_split_encoder.rs
@@ -70,7 +70,7 @@ fn split_streams_variable(src: &[u8], dst: &mut [u8], 
type_size: usize) {
 impl<T: DataType> Encoder<T> for ByteStreamSplitEncoder<T> {
     fn put(&mut self, values: &[T::T]) -> Result<()> {
         self.buffer
-            .extend(<T as DataType>::T::slice_as_bytes(values));
+            .extend_from_slice(<T as DataType>::T::slice_as_bytes(values));
 
         ensure_phys_ty!(
             Type::FLOAT | Type::DOUBLE | Type::INT32 | Type::INT64,

Reply via email to