Skip to content

Commit 4e7830e

Browse files
committed
Delete undefined type parameter
This useless and undefined `T` led to a huge performance hit. Fixes #96 Also added `@inline` performance annotations, though these are presumably far less important.
1 parent f51f9b5 commit 4e7830e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/axes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ offset_coerce(::Type{I}, r::AbstractUnitRange) where I<:AbstractUnitRange{T} whe
129129
@inline Base.unsafe_indices(r::IdOffsetRange) = (r,)
130130
@inline Base.length(r::IdOffsetRange) = length(r.parent)
131131

132-
function Base.iterate(r::IdOffsetRange)
132+
@inline function Base.iterate(r::IdOffsetRange)
133133
ret = iterate(r.parent)
134134
ret === nothing && return nothing
135135
return (ret[1] + r.offset, ret[2])
136136
end
137-
function Base.iterate(r::IdOffsetRange, i) where T
137+
@inline function Base.iterate(r::IdOffsetRange, i)
138138
ret = iterate(r.parent, i)
139139
ret === nothing && return nothing
140140
return (ret[1] + r.offset, ret[2])

0 commit comments

Comments
 (0)