Microsoft: Explain Net Native: Win10 Universal Application Performance Guarantee

  
Recently, Microsoft explained in detail in its Windows blog a .Net Native, a new framework for developing Win10 app store applications, Microsoft showed developers Why. .Net Native is even better.
Friends who are engaged in development should have an understanding of the dispute between managed code and native code. Microsoft started building the .Net development framework in the late 1990s and released .Net 1.0 in 2000. The idea behind the framework is that developers don't need to write code for basic operations like memory management for each application. These responsibilities can be handled by the Common Language Runtime (CLR), and developers only need to focus on it. At a higher level, you can implement the function. The actual running effect is also very good, the key is to reduce the code workload. However, performance has always been criticized because the conversion process from high-level language code to CLR to final CPU instructions requires a conversion process that reduces program efficiency.

now Microsoft has come up with the best of both worlds, introduced a new programming framework .Net Native. .Net programmers can continue to use the languages ​​and tools they are familiar with, such as C# or Visual Basic and other common .Net runtimes. Unlike in the past, code compiled based on .Net Native is compiled to run faster and does not require the user to install the .Net framework on the computer. .Net Native Benefits:
• Cold boot performance can be increased by 60%;
• Warm boot performance can be increased by 40%;
• Local compilation, applications take up less memory;
• No longer dependent Desktop .NET runtime;
• Because the application is compiled to native code, so you can get the performance of native code (analog C++ program)
• You can still use the industry's advanced C# or VB programming language and its Companion Tools
• You can still use the .Net programming model to write business logic, built-in memory management, and exception handling using an extended API.
Since compiling .Net Native applications takes time, the new "Debug mode" that Microsoft has added in Visual Studio allows developers to write .Net Native applications just like writing traditional .Net applications. Compile to this low code to run in Visual Studio. This speeds up development, but Microsoft also reminds developers that testing code in Release mode or fully compiling to native code is also very important in the development process.
Copyright © Windows knowledge All Rights Reserved