From 75512bfd2f30e1fe80503970ae8ea8706ae54d74 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 3 Sep 2022 12:26:55 +0800 Subject: [PATCH] Remove log print. --- CHANGELOG.md | 4 ++++ src/eval/expr.rs | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19f4bb28..01b54a0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,10 @@ New features * `if`-expressions are allowed in `Engine::eval_expression` and `Engine::compile_expression` provided that both statement blocks each contain at most a single expression. * `switch`-expressions are allowed in `Engine::eval_expression` and `Engine::compile_expression` provided that match actions are expressions only. +### `fast_ops` feature + +* A new feature `fast_ops` is introduced that short-circuits all built-in operators of built-in types for higher speed. New user overloads are ignored. + Enhancements ------------ diff --git a/src/eval/expr.rs b/src/eval/expr.rs index 251032cd..4748e0c5 100644 --- a/src/eval/expr.rs +++ b/src/eval/expr.rs @@ -278,13 +278,12 @@ impl Engine { c.get(&hash).unwrap().as_ref().unwrap() } None => { - println!("Exec {name} with {:?}", arg_values); return self .exec_fn_call( None, global, caches, lib, name, *hashes, arg_values, false, false, pos, level, ) - .map(|(v, ..)| v); + .map(|(v, ..)| v) } } };