You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jorge Leitão (Jira)" <ji...@apache.org> on 2020/12/24 03:23:00 UTC

[jira] [Resolved] (ARROW-10989) [Rust] Use slices for iterating primitive arrays

     [ https://issues.apache.org/jira/browse/ARROW-10989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jorge Leitão resolved ARROW-10989.
----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 8973
[https://github.com/apache/arrow/pull/8973]

> [Rust] Use slices for iterating primitive arrays
> ------------------------------------------------
>
>                 Key: ARROW-10989
>                 URL: https://issues.apache.org/jira/browse/ARROW-10989
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust
>            Reporter: Tyrel Rink
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> Iterating slices instead of indexes seems to improve performance of non-simd arithmetic operations.
> This adds a new method raw_values_slice to PrimitiveArray (so named to pun off of the raw_values function which returns a pointer). A few of the functions in PrimitiveArray rely on the caller for safety guarantees (bounds-checks for value_slice, value), so should probably be unsafe? But they are used widely, so I thought it simpler to start by adding a safer alternative...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)