Performance Improvements in .NET 4.5
I was reading Aswhin Kamath's
article published in MSDN Magazine and found it very interesting. Microsoft
team has done many low level performance improvements in .NET 4.5 including CLR
and GC. While some improvements (ASP.NET, ADO.NET) are obvious, there is couple
of improvements I was very impressed with. I was impressed how .NET team is
building code to take advantage of new hardware.
Here is a list of some of these improvements.
Most of the computers are coming with dual-core processors.
In .NET 4.5, now your just-in-time (JIT) compiler takes advantage of multi-core
processors on a machine.
Now in addition with the NGen tool, there is a new tool
added called Managed Profile Guided Optimization (MPGO), which generates
profile data for an IL DLL and adds the profile as a resource to the IL DLL.
This increases the performance of image processing and loading.
If you are using a Server to run .NET applications, now
server GC works in the background and takes advantages of parallel processing,
multiple processors and memory available on the server.
Some other lists include
- Improvements in PLINQ
- Improvements in ADO.NET
- Auto-Compiled LINQ Queries in EF
- WCF Improvements
- WF Improvements
- ASP.NET improvements
Also check out a good reading on what's new in
.NET 4.5 Base Class Library.
Read detailed article