Skip to content

Commit

Permalink
perf: add @propagate_inbounds to getindex for AbstractSpacialQTree
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Nov 7, 2024
1 parent 17454d7 commit a3a1a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qtrees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function Base.empty!(t::AbstractSpacialQTree, label::Int) end
function tree(t::AbstractSpacialQTree) end
Base.iterate(t::AbstractSpacialQTree, args...) = iterate(tree(t), args...)
Base.get(t::AbstractSpacialQTree, args...) = get(tree(t), args...)
Base.getindex(t::AbstractSpacialQTree, args...) = getindex(tree(t), args...)
Base.@propagate_inbounds Base.getindex(t::AbstractSpacialQTree, args...) = getindex(tree(t), args...)
Base.keys(t::AbstractSpacialQTree) = keys(tree(t))
Base.values(t::AbstractSpacialQTree) = values(tree(t))
Base.haskey(t::AbstractSpacialQTree, args...) = haskey(tree(t), args...)
Expand Down

0 comments on commit a3a1a3f

Please sign in to comment.