Skip to content

Commit

Permalink
Merge pull request JuliaCollections#907 from Tortar/patch-1
Browse files Browse the repository at this point in the history
Improve performance of sizehint! on BinaryHeap
  • Loading branch information
oxinabox committed Apr 18, 2024
2 parents 3be0527 + de9913b commit 90e955b
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 @@ -75,7 +75,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 90e955b

Please sign in to comment.