-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating README.md
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# FastOptions | ||
A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core. | ||
|
||
## Background | ||
The default OptionsManager implementation for IOptionsSnapshot<> has significant performance deficiencies. | ||
This library provides a workaround for these deficiencies by attempting to utilize IOptionsMonitor<> when possible. | ||
The library falls back to OptionsManager when IOptionsMonitor<> is not available. | ||
|
||
[The performance issue is being tracked here.](https://github.com/dotnet/runtime/issues/53793) | ||
|
||
## Usage | ||
```csharp | ||
services.AddFastOptions(); | ||
``` | ||
You can then inject IOptionsSnapshot<> as you normally would. |