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

Optimized 'when' compilation #7

Open
SiXoS opened this issue Aug 17, 2021 · 0 comments
Open

Optimized 'when' compilation #7

SiXoS opened this issue Aug 17, 2021 · 0 comments
Labels
bytecode This requires a change in the bytecode enhancement New feature or request

Comments

@SiXoS
Copy link
Owner

SiXoS commented Aug 17, 2021

Right now, if as user creates a when that looks like:

when(something) {
    1,2 -> return false
    3 -> return true
}

...it will be compiled as three clauses. It could just be 2 clauses where one has 2 cases which would save storage.

@SiXoS SiXoS added enhancement New feature or request bytecode This requires a change in the bytecode labels Aug 17, 2021
@SiXoS SiXoS changed the title Smaller when compilation Optimizedwhen compilation Aug 17, 2021
@SiXoS SiXoS changed the title Optimizedwhen compilation Optimized when compilation Aug 17, 2021
@SiXoS SiXoS changed the title Optimized when compilation Optimized 'when' compilation Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bytecode This requires a change in the bytecode enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant