ArmaScriptCompiler icon indicating copy to clipboard operation
ArmaScriptCompiler copied to clipboard

Optimize && operator

Open dedmen opened this issue 6 years ago • 0 comments

baermitumlaut [5:01 PM] @dedmen another optimization idea: transform BOOL && BOOL to BOOL && CODE

dedmen [5:03 PM] Yeah. Thought about that but wasn't sure if there might be any caveats that are complicated to solve maybe. More specifically, I thought about adding a "lazy compare" script function/instruction. That you just give a array of code to. That does real lazy eval. And not still evaluate all the other &&'s even though it's already false.

dedmen avatar Apr 09 '19 15:04 dedmen