Skip to content

Commit

Permalink
avoid @view which is slow for multi-file datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Feb 23, 2024
1 parent 6b7b60a commit eef0d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CatArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function load!(CA::CatArray{T,N},B,idx...) where {T,N}
for (array,(idx_global,idx_local)) in zip(CA.arrays,idx_global_local)
if valid_local_idx(idx_local...)
# get subset from subarray
subset = @view array[idx_local...]
subset = array[idx_local...]
B[idx_global...] .= subset
end
end
Expand Down

0 comments on commit eef0d27

Please sign in to comment.