Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit aafa554

Browse files
committed
isnull()/values(): annotate with @inline
1 parent 3a693a2 commit aafa554

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/primitives.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Base.isnull(x::NullableArray) = x.isnull
2-
Base.isnull(X::NullableArray, I::Int...) = X.isnull[I...]
3-
Base.isnull{T}(X::AbstractNullableArray{T}, I::Int...) = isnull(X[I...]) # fallback method
4-
Base.values(X::NullableArray, I::Int...) = X.values[I...]
2+
@inline Base.isnull(X::NullableArray, I::Int...) = X.isnull[I...]
3+
@inline Base.isnull{T}(X::AbstractNullableArray{T}, I::Int...) = isnull(X[I...]) # fallback method
4+
5+
@inline Base.values(X::NullableArray, I::Int...) = X.values[I...]
56

67
"""
78
size(X::NullableArray, [d::Real])

0 commit comments

Comments
 (0)