From 5e4717e6c2579776e3ef36a0f1ab598b732d3d14 Mon Sep 17 00:00:00 2001 From: Jaakko Ruohio Date: Thu, 17 Oct 2024 01:38:51 +0300 Subject: [PATCH] Remove two inlines slowing down GLTF TTFX and bloating compiled dll size (#282) --- src/structs.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs.jl b/src/structs.jl index 2ae6f3b..9a42ff2 100644 --- a/src/structs.jl +++ b/src/structs.jl @@ -211,7 +211,7 @@ end @inline read(::ArrayType, buf, pos, len, b, ::Type{T}, ::Type{eT}; kw...) where {T, eT} = readarray(buf, pos, len, b, T, eT; kw...) read(::ArrayType, buf, pos, len, b, ::Type{Tuple}, ::Type{eT}; kw...) where {eT} = readarray(buf, pos, len, b, Tuple, eT; kw...) -@inline function readarray(buf, pos, len, b, ::Type{T}, ::Type{eT}; kw...) where {T, eT} +function readarray(buf, pos, len, b, ::Type{T}, ::Type{eT}; kw...) where {T, eT} if b != UInt8('[') error = ExpectedOpeningArrayChar @goto invalid @@ -460,7 +460,7 @@ end throw(ArgumentError("read! is only defined when T is of the `Mutable` struct type")) end -@inline function read!(::Mutable, buf, pos, len, b, ::Type{T}, x::T; kw...) where {T} +function read!(::Mutable, buf, pos, len, b, ::Type{T}, x::T; kw...) where {T} if b != UInt8('{') error = ExpectedOpeningObjectChar @goto invalid