Why is IIS slower at first access, but faster?

After creating my asp.net solutions and then launching them in the browser for the first time, the loading time increases. Then, after that, time decreased to the next build.

Can someone explain why this is happening?

+4
source share
1 answer

When websites are deployed in IIS, the assemblies that make up the site still need to be compiled from the beginning. When first accessed, the CLR interprets the MSIL and converts it into a binary version specific to the CPU. x86, x64, Itanium, etc.

This also happens with .EXE and any output from the .NET compiler.

-, . . Microsoft.


URL-, , .NET , MSIL ?

IIS - , , . , .NET, IIS ASP.NET, , IIS, .NET, HttpContext, Session ..

ASP.NET , .

+5

Source: https://habr.com/ru/post/1543023/


All Articles