Skip to content
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

Arity inference compiler pass #158

Open
countvajhula opened this issue Jan 26, 2024 · 0 comments
Open

Arity inference compiler pass #158

countvajhula opened this issue Jan 26, 2024 · 0 comments
Labels

Comments

@countvajhula
Copy link
Collaborator

Qi in many cases does not distinguish variadic functions from fixed-arity functions. We may be able to infer the appropriate arity in practice, and apply these functions to a specific number of arguments instead of an arbitrary number, as this would be faster.

This could be done by building a table of known arities of built-in APIs that would be available to the compiler, and there may be other, generally-applicable, ways as well.

See also:
Compiler Optimizations
Optimizations
Next Optimizations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant