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

1.1 Optimize OneOf and NoneOf rules #1388

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. For complex applications when a deep stack trace has to be created it can be even 10 or more times slower.