Skip to content

Commit 6d816d8

Browse files
toustePIERRAT Baptiste
andauthored
LazyRow allocation fix by inlining (#153)
Co-authored-by: PIERRAT Baptiste <EMSE2000\pierrat@cis-pierrat.emse2000.local>
1 parent a84dd4e commit 6d816d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lazy.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ end
55

66
for typ in [:Symbol, :Int]
77
@eval begin
8-
Base.@propagate_inbounds function Base.getproperty(c::LazyRow, nm::$typ)
8+
@inline Base.@propagate_inbounds function Base.getproperty(c::LazyRow, nm::$typ)
99
return getproperty(getfield(c, 1), nm)[getfield(c, 2)]
1010
end
11-
Base.@propagate_inbounds function Base.setproperty!(c::LazyRow, nm::$typ, val)
11+
@inline Base.@propagate_inbounds function Base.setproperty!(c::LazyRow, nm::$typ, val)
1212
getproperty(getfield(c, 1), nm)[getfield(c, 2)] = val
13-
return
1413
end
1514
end
1615
end

0 commit comments

Comments
 (0)