Skip to content

compiler: optimize constant expressions #143

Open
@tsatke

Description

Optimize constant expressions, so that the executor does not have to evaluate expressions like these.

  • 1 == 2 => false
  • false == true => false
  • a IS b where a and b are different constant values => false
  • 1 BETWEEN 5 AND 6 => false
  • etc.

There is a lot of room for creativity here.
Please take note, that optimizations require extensive testing, so that nothing is optimized in a wrong way.
This means, that to complete this ticket, a lot of positive and negative test cases are required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions