Copying a NTuple{UInt8} into a Memory{UInt8} or Vector{UInt8}
Julia Programming Language
Copying a NTuple{UInt8} into a Memory{UInt8} or Vector{UInt8}
In reviewing changes lead to StaticStrings.jl v0.3 I noticed the following code pattern would out perform other approaches including a plain for loop which does appear to vectorize. To led to the following code which seemed to outperform other approaches: @inline function bulk_copyto!(dest::AbstractVector{T}, doffs::Int, src::NTuple{N,T}, soffs::Int, n::Int) where {T,N} @boundscheck begin isbitstype(T) && sizeof(NTuple{N,T}) == N*sizeof(T) || throw(Arg...
0 comments
No comments yet.