Microsoft has upgraded its DOTNET Framework to 4.6.2 based on the user feedback. The latest version has come up with improvements in garbage collection and also has great support for automatic memory management.
The upgraded version has come up with the below-mentioned improvements:
-
Base Class Library
-
Common Language Runtime
-
ClickOnce
-
ASP.NET
-
SQL
-
Windows Presentation Foundation
-
Windows Communication Foundation
The latest version has included benefits like object handling. These improvements add to the increased performance of framework and also increase the efficiency of garbage collection. Garbage collection allows developers to develop an application without releasing free memory and allocation of objects on the managed heap and reclaimed objects are not used anymore.
Maoni Stephens, main garbage collector developer at Microsoft has said that the upgraded version (4.6.2) has removed the limitation in which objects and its nearby live data objects that cannot be moved when an object is noted as “pinned survived”. "Starting with version 4.6.2, this limitation was lifted so we could compact away the adjacent live objects around pinned objects. In testing, we saw dramatic improvements of ephemeral collection time in scenarios where GC was artificially pinning a lot of objects."
The latest version is more efficient in using free space with gen2 objects. The earlier framework was using fit-first approach when compressing gen1 survivors into the gen2 free list, which means spaces discarded by garbage collection, cannot be used and it leads to wastage of spaces in the memory. Stephens said, Version 4.6.2 has come up with bucket free list where the leftover free spaces are added into their respective bucket. Microsoft had to be very careful in using the smallest bucket as there are many buckets available.
Leave a Reply
Your email address will not be published. Required fields are marked *