You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea comes from #416. It might make sense to keep some shared LRU cache for the format: regex validator.
Assumption: compiling regex on each validation is expensive, but input regexes are often repeated.
Hash lookups for String will be much less expensive than compiling a regex, so we can make one extra lookup every validation in hope that regex is already cached (and translated to JS style).
It could be schema-level or even global.
The text was updated successfully, but these errors were encountered:
The idea comes from #416. It might make sense to keep some shared LRU cache for the
format: regex
validator.Assumption: compiling regex on each validation is expensive, but input regexes are often repeated.
Hash lookups for
String
will be much less expensive than compiling a regex, so we can make one extra lookup every validation in hope that regex is already cached (and translated to JS style).It could be schema-level or even global.
The text was updated successfully, but these errors were encountered: