Skip to content

Instantly share code, notes, and snippets.

@Datseris
Created September 7, 2018 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Datseris/043b96f2143492cd54aa9a3fcc5a1623 to your computer and use it in GitHub Desktop.
Save Datseris/043b96f2143492cd54aa9a3fcc5a1623 to your computer and use it in GitHub Desktop.
Julia tuples have performance hinderances for sizes > 32
f(t) = +(t...,)
@code_typed f(ntuple(identity, 5)) # what you expect
@code_typed f(ntuple(identity, 18)) # something is going on
@code_typed f(ntuple(identity, 33)) # _apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment