Skip to content

Commit

Permalink
Update src/blob.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly authored Jan 24, 2025
1 parent f813461 commit 0ea62dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blob.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function _recursive_fieldindexes(::Type{T}, ::Val{i}) where {T,i}
end

# NOTE: An important optimization here is that the static operations that can be performed
# only on the top do not depend on the possibly runtime value `field`. We precompute the
# only on the type do not depend on the possibly runtime value `field`. We precompute the
# fieldname => fieldidx lookup table at compile time (as a NamedTuple), then use it at
# runtime. If the field is a known compiler constant (as in the `x.y` case), all the better.
@inline function Base.getindex(blob::Blob{T}, field::Symbol) where {T}
Expand Down

0 comments on commit 0ea62dc

Please sign in to comment.