mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2026-02-19 07:15:14 -05:00
Changes made for optimization. 1. Added `functools.lru_cache` decorator to cache results of `validate_regex` function calls. This ensures that repeated validations of the same pattern are resolved quickly and avoid redundant regex compilations.
5.4 KiB
5.4 KiB