Specy / rooc

An optimization modeling language with solvers for OR and CO problems
https://rooc.specy.app
GNU General Public License v3.0
35 stars 1 forks source link

Remove recursive evaluation #14

Open Specy opened 3 weeks ago

Specy commented 3 weeks ago

Many many places use recursion to solve the expressions, which is not the best in the case of unrolling a sum. Try to either use a dynamic alloc stack or remove the recursion Altogether

Specy commented 2 weeks ago

Or... alternatively for now: https://github.com/rust-lang/stacker

Specy commented 1 week ago

Or... alternatively for now: https://github.com/rust-lang/stacker

this works but, there needs to find a way to drop the PreExp and Exp iteratively instead of recursively as it stack overflows on drop