-
Notifications
You must be signed in to change notification settings - Fork 10
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
Performance of input independent functions #14
Comments
Missing $ Also 2 will be intrinsically slower though it shouldn't matter for allocation. |
Adding $ changes nothing:
I don't understand why the issue was closed. |
In that case it seems to be a Base |
So should I file an issue against julia Base? |
Yes, the cfunction code generation appears to be inefficient and non-repeatable.
|
(note that the case I posted above may or may not be the direct cause of the issue but it is standalone and reliable enough to reproduce the issue on 1.3.0.) |
Thanks for the MWE! One last question :) |
I don't know what's the condition that triggers it. From minimal testing it appears to be just sensitive to random stuff including running a second time as shown above. |
Hello,
First thanks for the package, it came very handy in code that I needed. However, I noticed this performance hit that I couldn't understant:
As you can see the two functions are the same, the second one is made to look as if it is a function of its inputs and the performance is very different.
Is this a bug, or am I missing something?
Cheers!
The text was updated successfully, but these errors were encountered: