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

More aggressive constant folding #246

Open
giann opened this issue Jan 11, 2024 · 0 comments
Open

More aggressive constant folding #246

giann opened this issue Jan 11, 2024 · 0 comments
Labels
bytecode Issue related to bytecode optimization performance Improves performances
Milestone

Comments

@giann
Copy link
Collaborator

giann commented Jan 11, 2024

Right now we do constant folding in specific locations. We could systematically check if a node is constant before generating it. BUT it requires to separate type checking in their own functions so we could do:

type checking -> is it constant ? yes -> toValue
                                  no  -> generate

We already do this work in the JIT since type checking has already been done at this point.

@giann giann added performance Improves performances bytecode Issue related to bytecode optimization labels Jan 11, 2024
@giann giann added this to the 0.4.0 milestone Jan 11, 2024
@giann giann modified the milestones: 0.4.0, 0.5.0 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bytecode Issue related to bytecode optimization performance Improves performances
Projects
None yet
Development

No branches or pull requests

1 participant