Respect / Validation

The most awesome validation engine ever created for PHP
https://respect-validation.readthedocs.io
MIT License
5.76k stars 774 forks source link

Optimize OneOf and NoneOf rules #1389

Closed abryb closed 1 year ago

abryb commented 2 years ago

Even when OneOf and NoneOf are valid they create exceptions. Exception are very costly in terms of time and memory, they can be 10x slower than plain validation.