-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stagedfunction called by a function gets staged twice #8886
Comments
mauro3
changed the title
stagedfunction called by a function gets staged twice times
stagedfunction called by a function gets staged twice
Nov 3, 2014
Staged functions should definitely not have side effects. The compiler can |
Thanks for the clarification. Maybe something to put into the docs once they get written. |
It seems like this is just a performance issue. |
Yes, a known performance issue. Related to type inference and the method cache being two separate caches. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would have expected, that the staged part of
f
to be called only once in total. And for sure not twice in a row inff(6)
.The text was updated successfully, but these errors were encountered: