diff --git a/src/heaps/arrays_as_heaps.jl b/src/heaps/arrays_as_heaps.jl index 483e65093..ffb5fabc4 100644 --- a/src/heaps/arrays_as_heaps.jl +++ b/src/heaps/arrays_as_heaps.jl @@ -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