optimize: dedup consts

This commit is contained in:
2025-05-15 19:11:34 +08:00
parent 864be73e77
commit 1e50322af0
8 changed files with 51 additions and 31 deletions

View File

@@ -89,7 +89,7 @@ impl<'vm> Func<'vm> {
}
}
vm.eval(self.func.opcodes.clone(), env)
vm.eval(self.func.opcodes.iter().copied(), env)
}
}