Skip to content

Commit 3856b82

Browse files
committed
Add note on future optimization
1 parent 95d4a54 commit 3856b82

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Containers/DenseAxisArray.jl

+4
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,10 @@ end
631631
function Base.eachindex(A::DenseAxisArrayView)
632632
# Return a generator so that we lazily evaluate the product instead of
633633
# collecting into a vector.
634+
#
635+
# In future, we might want to return the appropriate matrix of
636+
# `CartesianIndex` to avoid having to do the lookups with
637+
# `DenseAxisArrayKey`.
634638
return (DenseAxisArrayKey(k) for k in Base.product(A.axes...))
635639
end
636640

0 commit comments

Comments
 (0)