Skip to content

Commit

Permalink
Comment about variable argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
tisztamo committed Sep 7, 2020
1 parent 688d126 commit 504e57f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FunctionWranglers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Base.length(w::FunctionWrangler) = isnothing(w.op) ? 0 : 1 + length(w.next)
return _smap!(outputs, wrangler.next, myidx + 1, p1)
end

# Using variable argument definitions sometimes caused the compiler to "loose track" of type information
# and generate slow code (tested up to 1.5.1 with https://gist.github.com/tisztamo/1ce6632d7e6ffc45488df26dacff64dd)
@inline function _smap!(outputs, wrangler::FunctionWrangler{TOp, TNext}, myidx, p1, p2) where {TNext, TOp}
if TOp === Nothing
return nothing
Expand Down

2 comments on commit 504e57f

@tisztamo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/20978

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 504e57f358115640fe12d6fa990526a50d4deaf6
git push origin v0.1.0

Please sign in to comment.