Skip to content

Commit 2e45266

Browse files
authored
Reduce allocations in ConcreteEvalaution indexing (#554)
1 parent 614f040 commit 2e45266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operators/functionals/Evaluation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ _eval(f, x) = f(x)
8181
_eval(f, x::SpecialEvalPtType) = boundaryevalfn(x)(f)
8282
function getindex(D::ConcreteEvaluation,k::Integer)
8383
T = prectype(domainspace(D))
84-
f = Fun(D.space, [zeros(T,k-1); one(T)])
84+
f = D.space(k-1)
8585
df = differentiate(f,D.order)
8686
v = _eval(df, D.x)
8787
strictconvert(eltype(D), v)

0 commit comments

Comments
 (0)