dedmen / ArmaScriptCompiler

GNU General Public License v3.0
27 stars 12 forks source link

Optimize && operator #1

Open dedmen opened 5 years ago

dedmen commented 5 years ago

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.