Skip to content

A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core.

License

Notifications You must be signed in to change notification settings

sermo/FastOptions

Repository files navigation

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.

Usage

services.AddFastOptions();

You can then inject IOptionsSnapshot<> as you normally would.

About

A significantly faster drop in replacement for the default OptionsManager provided by ASP.NET core.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages