feat: use Rc for more things, fib_iter runs almost 3 seconds faster now

This commit is contained in:
rvcas
2023-01-31 03:30:45 -05:00
committed by Lucas
parent eda3194cf0
commit c8efe60843
15 changed files with 1789 additions and 1110 deletions

View File

@@ -655,7 +655,7 @@ where
.map(|script| match script.program.eval(initial_budget) {
(Ok(result), remaining_budget, logs) => EvalInfo {
success: result != Term::Error
&& result != Term::Constant(Constant::Bool(false)),
&& result != Term::Constant(Constant::Bool(false).into()),
script,
spent_budget: initial_budget - remaining_budget,
output: Some(result),