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
AppContext.TryGetSwitchstatically caches internally but takes out a lock.
.NET almost always caches these values. They're not expected to change while the process is running unlike normal config.
Currently we don't cache values.
To-do:
Update all AppContext.TryGetSwitch to statically cache the value.
See if moving all context switches into one class for easier management would be helpful.
Run perf tests to compare difference.
The text was updated successfully, but these errors were encountered:
AppContext.TryGetSwitch
statically caches internally but takes out a lock..NET almost always caches these values. They're not expected to change while the process is running unlike normal config.
Currently we don't cache values.
To-do:
AppContext.TryGetSwitch
to statically cache the value.The text was updated successfully, but these errors were encountered: