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
StringHumanizeExtensions.Humanize and StringHumanizeExtensions.FromPascalCase are reinstantiating their respective Regex objects on every call. These constructor calls can make up over half the execution time of Humanize(), as seen in the screenshot below. This can be fixed by using the cached static Regex.IsMatch method or instantiating the necessary Regex only in the static constructor of StringHumanizeExtensions.
The text was updated successfully, but these errors were encountered:
StringHumanizeExtensions.Humanize
andStringHumanizeExtensions.FromPascalCase
are reinstantiating their respective Regex objects on every call. These constructor calls can make up over half the execution time ofHumanize()
, as seen in the screenshot below. This can be fixed by using the cached staticRegex.IsMatch
method or instantiating the necessary Regex only in the static constructor ofStringHumanizeExtensions
.The text was updated successfully, but these errors were encountered: