-
Notifications
You must be signed in to change notification settings - Fork 14
Comparison Folding #16
Copy link
Copy link
Open
Labels
optimisationImplement this to make things run fasterImplement this to make things run faster
Metadata
Metadata
Assignees
Labels
optimisationImplement this to make things run fasterImplement this to make things run faster
Currently the results of comparison operations are always converted to integers, then converted back to bools when testing a conditional branch. We should store the comparison results as bools, and only convert between integers and bools if necessary. We should also try to fold the comparisons straight into conditional tests, since LuaJIT bytecode is designed to jump on comparisons.