3 ms·
C# is compiled to an intermediate language (MSIL/CIL^) which is then JIT-ed. The JIT cost actually adds a fair bit to the start-up time for C# code. This is wh
by radicalbyte 7y ago
C# is compiled to an intermediate language (MSIL/CIL^) which is then JIT-ed.
The JIT cost actually adds a fair bit to the start-up time for C# code. This is why on the webserver there's an option to keep the C# code resident so it's always ready to go. In the past - before this option - it was common have scheduled jobs which pinged your webapp regularly to keep it hot :)
^ https://en.wikipedia.org/wiki/Common_Intermediate_Language https://en.wikipedia.org/wiki/Common_Intermediate_Language
- Pxtl 7y agoThis to me smells like "things I shouldn't have to care about when using a serverless architecture". I would expect the serverless provider to keep my code fully AOT compiled in the fastest cold-start-format instead (wasn't ".net native" a thing?) of JITing things at the last second.
- radicalbyte 7y agoUnfortunately .Net Native doesn't support a lot of project types at the moment. Serverless is all built around fully automated and managed containers, right? So it abstracts the whole runtime environment for webserver code. You use it if you don't have the skills/capability to run your own deployment/scaling pipeline. The technology is a great 80/20 style leveler; I would highly recommend it to new developers and to people coming from a less technical background (such as design, marketing etc).