Skip to content

Faster access for tuple of arrays #4

@mcabbott

Description

@mcabbott

This is currently much slower than LazyArrays.Hcat, surely it can be fixed:

@btime hcat($t1...); # 178.379 ns (4 allocations: 1.03 KiB)
@btime collect(stack($t1)); # 1.032 μs (2 allocations: 912 bytes) -- was quicker I swear
@btime collect($(stack(t1))); # 1.065 μs (1 allocation: 896 bytes)
@btime collect(Hcat($t1...)); # 149.001 ns (3 allocations: 1008 bytes) -- match this

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