From 58f9bf7042c0e0ad8a50b0914a5aff76613962b6 Mon Sep 17 00:00:00 2001 From: Andy Ferris Date: Tue, 11 Dec 2018 12:06:55 +1000 Subject: [PATCH] `@inbounds` annotations for filter (#30156) --- base/array.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/array.jl b/base/array.jl index 0e7e0b71db2c6..a8256ec8ff99a 100644 --- a/base/array.jl +++ b/base/array.jl @@ -2333,7 +2333,7 @@ function filter!(f, a::AbstractVector) for acurr in a if f(acurr) - a[i] = acurr + @inbounds a[i] = acurr y = iterate(idx, state) y === nothing && (i += 1; break) i, state = y