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?
On 0.6,
I get that it's fundamentally performing more operations, but an 8X factor is pretty steep, and the allocation should not be necessary, right?