Skip to content

Commit bb17d3d

Browse files
authored
micro optimizations (#58)
1 parent dc2a29b commit bb17d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sort.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function Base.iterate(n::TiedIndices, i = first(n.within))
4040
vec, perm = n.vec, n.perm
4141
l = last(n.within)
4242
i > l && return nothing
43-
row = vec[perm[i]]
44-
i1 = i
43+
@inbounds row = vec[perm[i]]
44+
i1 = i+1
4545
@inbounds while i1 <= l && isequal(row, vec[perm[i1]])
4646
i1 += 1
4747
end

0 commit comments

Comments
 (0)