Add fast operators to benchmarks.

This commit is contained in:
Stephen Chung
2022-09-03 15:48:00 +08:00
parent b3f6fa9ce8
commit 1ae0a4c761
4 changed files with 6505 additions and 7 deletions

View File

@@ -21,6 +21,10 @@ Deprecated API
New features
------------
### Fast operators
* A new option `Engine::fast_operators` is introduced that short-circuits all built-in operators of built-in types for higher speed. User overloads are ignored. For operator-heavy scripts, this may yield substantial speed-up's.
### Fallible type iterators
* For very special needs, the ability to register fallible type iterators is added.
@@ -30,10 +34,6 @@ 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 operators
* A new option `Engine::fast_operators` is introduced that short-circuits all built-in operators of built-in types for higher speed. User overloads are ignored. For operator-heavy scripts, this may yield substantial speed-up's.
Enhancements
------------