Tuesday, December 25, 2018

What's new in .Net Core 2.2

Similar to .Net Core 2.1, the .Net Core 2.2 version also includes performance enhancements, additionally it adds enhancements to event handling, runtime services, JIT compiler and application development enhancements.

Performance enhancements

.Net core 2.2 improved the performance of JIT compiler by making the multi-tier compilation option as default, this was an opt-in feature in .Net Core 2.1. Tiered compilation introduces two stages in JIT compilation:
Ø  A first tier, which generates code as quickly as possible.
Ø  A second tier, which generates optimized code for those methods that are executed frequently. The second tier of compilation is performed in parallel for enhanced performance.

Event handling
To measure and improve application performance we might have to measure the applications use of framework services like GC, JIT etc. Prior to .Net Core we could do this by monitoring the ETW events of the current process. However in .Net Core this is not possible in since the underlying OC could be Windows or Linux or MacOS.

In .Net Core 2.2, CoreCLR events can now be consumed using the EventListener class. These events describe the behavior of such runtime services as GC, JIT, ThreadPool, and interop. These are the same events that parts of the CoreCLR ETW provider.


Search Flipkart Products:
Flipkart.com

No comments: