HSTS-IIS-Module icon indicating copy to clipboard operation
HSTS-IIS-Module copied to clipboard

Poor Performance Due to Configuration Loading

Open Rich-Lang opened this issue 7 years ago • 1 comments

This module needs a major overhaul to the configuration loading procedure. The module loads from the configuration system every time a request comes in which is a very expensive operation. Module should be updated to take advantage of ModuleContexts to act as a cache for configuration settings. See the following blogpost for discussion of this: http://www.ksingla.net/2008/12/using-imetadatainfogetmodulecontextcontainer-to-store-configuration-data/

To give an idea of the performance impact the attached file shows two very simple load tests which runs against the File->New Sample of an ASP.NET MVC application. The load test has 50 users hitting the pages for 2 minutes. The module isn't even enabled, so its purely the check for the enabled flag which is consuming the time. In the image, the 1st circle represents with the module, the 2nd circle represents removing the module from the section of the site.

run7and8

Rich-Lang avatar Sep 13 '18 21:09 Rich-Lang

Any progress on this serious issue? We need to save CPU cycles, too.

alexhass avatar Nov 05 '18 09:11 alexhass