From 266216a3a03b7e980bb7191dafe62331d36ea2dc Mon Sep 17 00:00:00 2001 From: Frames White Date: Thu, 18 Apr 2024 14:18:27 +0800 Subject: [PATCH] mark heapify to inline --- src/heaps/arrays_as_heaps.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heaps/arrays_as_heaps.jl b/src/heaps/arrays_as_heaps.jl index 39a7e53f3..3f6241b68 100644 --- a/src/heaps/arrays_as_heaps.jl +++ b/src/heaps/arrays_as_heaps.jl @@ -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