Skip to content

Commit 266216a

Browse files
committed
mark heapify to inline
1 parent 88efafb commit 266216a

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
@@ -81,7 +81,7 @@ end
8181
8282
In-place [`heapify`](@ref).
8383
"""
84-
function heapify!(xs::AbstractArray, o::Ordering=Forward)
84+
@inline function heapify!(xs::AbstractArray, o::Ordering=Forward)
8585
for i in heapparent(length(xs)):-1:1
8686
percolate_down!(xs, i, o)
8787
end

0 commit comments

Comments
 (0)