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

Use static closures for true/false #23

Open
mbg opened this issue Nov 9, 2021 · 0 comments
Open

Use static closures for true/false #23

mbg opened this issue Nov 9, 2021 · 0 comments
Labels
code-generation Code generator related delight Nice to haves! enhancement New feature or request

Comments

@mbg
Copy link
Contributor

mbg commented Nov 9, 2021

Currently, functions which return boolean values will allocate new, dynamic closures for their results and store the boolean value (0 or 1) in it. Since there are only two boolean values, we could try to avoid this and point to static closures for true and false instead.

@mbg mbg added enhancement New feature or request code-generation Code generator related labels Nov 9, 2021
@kk-hainq kk-hainq added the delight Nice to haves! label May 9, 2022
@mbg mbg removed their assignment Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-generation Code generator related delight Nice to haves! enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants