tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
8 lines (5 loc) • 702 B
Markdown
### ✨ Key Changes
* **Early-Exit Optimization:** Added the `optimize` flag to the global `trapezoid` utility and the `FuzzySet` class.
* **How it works:** When enabled (`true`), the engine uses short-circuit logic. It immediately returns `0` or `1` if the input value falls completely outside the outer bounds or entirely within the top plateau, safely skipping unnecessary slope calculations. The parameter defaults to `false`.
To take advantage of this performance boost, simply update your `FuzzySet` instantiations by passing `true` as the final argument: `new FuzzySet("Name", a, b, c, d, true)`.
**Full Changelog**: https://github.com/Tiny-Essentials/Tiny-Essentials/compare/1.25.4...1.25.6