-
-
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
varargs generated functions generate inefficient code #12643
Comments
I think this is the issue we have for varargs functions in general. Not just generated functions. The code is pretty terrible when we generate a jlcall signature. One workaround is that if the function can be inlined, it might not suffer from this issue. Close as a duplicate of #11248 (or possibly other issues linked there) |
See also #5402 |
Naive question, but why does a varargs generated function have to generate a varargs method? The number of arguments is known at generation time. |
I don't think the current implementation have any special handling for that. The signature of the generated function is the same with the signature of the original function. In some sense, this is exactly the same issue I described in #11248. For Another way to workaround this is probably to define (either generated or not) |
The following was unexpected:
I was hoping that the code would look more like this:
Am I doing anything wrong?
CC @joehuchette
The text was updated successfully, but these errors were encountered: