spell-music / csound-expression

Haskell Framework for Electronic Music
320 stars 31 forks source link

Optim ifs #79

Closed anton-k closed 1 year ago

anton-k commented 1 year ago

Library became more solid, although at the expence of rendering speed. I need to investigate how to make rendering better and improve performance.

If-saturation can be done more efficient if we simplify the calculation of the free variables. Main idea is to calculate last usage of the variable (by line number) and if it exceeds the if-block start line then it's used outside theblock and we can not include it to the if-block