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
See #1689 for discussion. Currently for every invocation of these functions, a new Regex instance is created which is wasteful.
A quick fix that should work would be using static Regex.IsMatch which caches them internally (up to 15 by default, so Regex.CacheSize may need to be tweaked).
Specifically IsValidFilterExpression, IsLocalMethod, IsTypeFilterMatch. The first two methods even have constant regex patterns.
The text was updated successfully, but these errors were encountered:
See #1689 for discussion. Currently for every invocation of these functions, a new Regex instance is created which is wasteful.
A quick fix that should work would be using static
Regex.IsMatch
which caches them internally (up to 15 by default, so Regex.CacheSize may need to be tweaked).Specifically IsValidFilterExpression, IsLocalMethod, IsTypeFilterMatch. The first two methods even have constant regex patterns.
The text was updated successfully, but these errors were encountered: