Skip to content

Commit 90e955b

Browse files
authored
Merge pull request #907 from Tortar/patch-1
Improve performance of sizehint! on BinaryHeap
2 parents 3be0527 + de9913b commit 90e955b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/heaps/arrays_as_heaps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ end
7575
7676
In-place [`heapify`](@ref).
7777
"""
78-
function heapify!(xs::AbstractArray, o::Ordering=Forward)
78+
@inline function heapify!(xs::AbstractArray, o::Ordering=Forward)
7979
for i in heapparent(length(xs)):-1:1
8080
percolate_down!(xs, i, o)
8181
end

0 commit comments

Comments
 (0)