Skip to content

Accessing Arrow.List is rather slow #30

@cstjean

Description

@cstjean

On 0.6,

julia> using BenchmarkTools

julia> t1 = ["A", "A", "A"];

julia> t2 = arrowformat(t1);

julia> @btime $t1[2]
  2.025 ns (0 allocations: 0 bytes)
"A"

julia> @btime $t2[2]
  17.286 ns (1 allocation: 32 bytes)
"A"

I get that it's fundamentally performing more operations, but an 8X factor is pretty steep, and the allocation should not be necessary, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions