Use fast operators mode in rhai-run.
This commit is contained in:
@@ -50,6 +50,8 @@ fn main() {
|
||||
// Initialize scripting engine
|
||||
let mut engine = Engine::new();
|
||||
|
||||
engine.set_fast_operators(true);
|
||||
|
||||
#[cfg(not(feature = "no_optimize"))]
|
||||
engine.set_optimization_level(rhai::OptimizationLevel::Simple);
|
||||
|
||||
|
Reference in New Issue
Block a user