Microsoft official details. Net Native: Win10 universal application performance guarantee

  

Microsoft began 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), developers only need to pay attention. Focus on a higher level and achieve functionality. 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 and launched 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 advantages:

• Cold start performance can be increased by 60%;

• Hot start performance can be increased by 40%;

&bull Local compilation, the application takes up less memory;

• no longer depends on the desktop .NET runtime;

• Since the application is compiled to native code, it can be localized Code performance (analog C++ program)

• You can still use the industry's advanced C# or VB programming language and its supporting tools

• You can still use the .Net programming model to take advantage of The extended API writes business logic, built-in memory management, and exception handling.

Because compiling .Net Native apps takes time, Microsoft's new "Debug mode" in Visual Studio allows developers to write .Net Natives like traditional .Net apps. The application can be run in Visual Studio without fully compiling to low code. 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.

Microsoft Universal Apps, a universal application that runs on Windows 10 devices such as desktop PCs, tablets, mobile phones, and Xbox, is based on .Net Native. For developers, .Net Native is a familiar but faster programming framework; for end users, there is no need to install the .Net framework to use UWP Universal Applications. Applications will also be lighter and faster (compared to .Net applications).

If you want to know more, please refer to the official Microsoft page. (via: WinBeta)

Copyright © Windows knowledge All Rights Reserved