Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster access for tuple of arrays #4

Open
mcabbott opened this issue Oct 31, 2019 · 0 comments
Open

Faster access for tuple of arrays #4

mcabbott opened this issue Oct 31, 2019 · 0 comments

Comments

@mcabbott
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant