Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11270

[Rust] Use slices for simple array data buffer access

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • Rust

    Description

      Using an approach similar to ARROW-10989, migrate typed array API's to use slices where they can.

      This impacts the API of:

      • GenericBinaryArray<>
      • GenericListArray<>
      • GenericStringArray<>

      This also enables bounds checking in every value() function on each of the above arrays (as well as PrimitiveArray<> ).

      The new PrimitiveArray.value() bounds check  has a negative performance impact on various benchmarks that still use the .Value(...) function on PrimitiveArray.  But that should be resolvable by using the PrimitiveArray.values() instead (whether within this PR or a future PR).

      Attachments

        Issue Links

          Activity

            People

              tyrelr Tyrel Rink
              tyrelr Tyrel Rink
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6.5h
                  6.5h