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

Commit

Permalink
isnull()/values(): annotate with @inline
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Jan 18, 2017
1 parent 3a693a2 commit aafa554
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/primitives.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Base.isnull(x::NullableArray) = x.isnull
Base.isnull(X::NullableArray, I::Int...) = X.isnull[I...]
Base.isnull{T}(X::AbstractNullableArray{T}, I::Int...) = isnull(X[I...]) # fallback method
Base.values(X::NullableArray, I::Int...) = X.values[I...]
@inline Base.isnull(X::NullableArray, I::Int...) = X.isnull[I...]
@inline Base.isnull{T}(X::AbstractNullableArray{T}, I::Int...) = isnull(X[I...]) # fallback method

@inline Base.values(X::NullableArray, I::Int...) = X.values[I...]

"""
size(X::NullableArray, [d::Real])
Expand Down

0 comments on commit aafa554

Please sign in to comment.