Skip to content

Conversation

aplavin
Copy link
Member

@aplavin aplavin commented Mar 3, 2023

Much faster for small arrays:

julia> @btime StructArray(a=1:1, b=[2], c=[:a])
  111.975 ns (4 allocations: 192 bytes)  # before
  56.601 ns (2 allocations: 128 bytes)   # after

julia> @btime StructArray(a=1:1, b=2:2, c=3.:3)
  87.747 ns (3 allocations: 208 bytes)   # before
  1.750 ns (0 allocations: 0 bytes)      # after

@aplavin
Copy link
Member Author

aplavin commented Mar 9, 2023

Bump...

@piever piever merged commit e2f0667 into JuliaArrays:master Mar 13, 2023
@aplavin aplavin deleted the fast branch March 25, 2023 20:20
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

Successfully merging this pull request may close these issues.

2 participants