Skip to content

Commit

Permalink
mark heapify to inline
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Apr 18, 2024
1 parent 88efafb commit 266216a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heaps/arrays_as_heaps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ end
In-place [`heapify`](@ref).
"""
function heapify!(xs::AbstractArray, o::Ordering=Forward)
@inline function heapify!(xs::AbstractArray, o::Ordering=Forward)
for i in heapparent(length(xs)):-1:1
percolate_down!(xs, i, o)
end
Expand Down

0 comments on commit 266216a

Please sign in to comment.