FixProject / Fix

An ultra-lightweight web glue for .NET, written in C#.
MIT License
39 stars 9 forks source link

More efficient environment hash generation #2

Closed nordbergm closed 11 years ago

nordbergm commented 11 years ago

Further to my performance tweaks on Simple.Web I've found that the request.ServerVariables call in the ASP.NET bridge takes unnecessary time out of a request (it appears lazy loaded by ASP.NET).

The information used is also not changing throughout the application lifecycle, so I've made a change to read it once on startup and then efficiently use that data when assembling the environment hash.

ThatRendle commented 11 years ago

Nice, thanks.