From e6f8a7d3b7bacc1141864b65a03c91b84d0f2da6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 23 May 2022 11:47:34 +0200 Subject: [PATCH] Apply no-kwarg optimization also if there are no arguments --- src/ccalls.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ccalls.jl b/src/ccalls.jl index bd18cffe2..f1847ad7a 100644 --- a/src/ccalls.jl +++ b/src/ccalls.jl @@ -231,6 +231,7 @@ end (func::GapObj)(args...; kwargs...) = call_gap_func(func, args...; kwargs...) # specialize non-kwargs versions, which increases performance +(func::GapObj)() = call_gap_func_nokw(func) (func::GapObj)(a1) = call_gap_func_nokw(func, a1) (func::GapObj)(a1, a2) = call_gap_func_nokw(func, a1, a2) (func::GapObj)(a1, a2, a3) = call_gap_func_nokw(func, a1, a2, a3)