Skip to content

Commit d0dff8e

Browse files
committed
Improve performance of Core._apply handling
1 parent d76cfe1 commit d0dff8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/generate_builtins.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ function maybe_evaluate_builtin(frame, call_expr, expand::Bool)
139139
if !expand
140140
return Some{Any}($fstr(argswrapped...))
141141
end
142-
argsflat = Base.append_any((argswrapped[1],), argswrapped[2:end]...)
143-
new_expr = Expr(:call)
142+
new_expr = Expr(:call, argswrapped[1])
143+
popfirst!(argswrapped)
144+
argsflat = Base.append_any(argswrapped...)
144145
for x in argsflat
145146
push!(new_expr.args, (isa(x, Symbol) || isa(x, Expr) || isa(x, QuoteNode)) ? QuoteNode(x) : x)
146147
end

0 commit comments

Comments
 (0)