With Microsoft’s release of .Net Framework 4.7.1 this week, gains critical improvements to garbage collection, security, and application configuration.
To boost memory allocation performance, particularly for large object heap allocations, an architectural change to the garbage collector splits the heap allocation into small and large object heaps. Applications making a lot of large object heap allocations should experience a reduction in allocation lock contention and better performance.
The update also adds secure hash options for ASP.Net forms authentication, including SHA-2 (Secure Hash Algorithm), the . For compatibility, SHA-1 is still the default option. SHA-2 is also supported for Message.HashAlgorithm, which specifies the hash algorithm used by message queuing when authenticating.
New configuration builders in .Net 4.7.1 allow developers to inject and build configuration for applications at runtime. The configuration data can be taken from sources beyond the config file; in previous versions of .Net, configuration is static. Through configuration builders, applications are able to apply a custom-defined set of builders to a section of config. Builders can modify configuration data contained in a config section or build it from scratch, even drawing new data from sources other than static files.
, which features a set of APIs shared by multiple .Net implementations.
ReadOnlyReferencesin the C# 7.2 language, for passing variables by reference but without exposing data to modifications.
SystemValueTupletypes, which should make it easier to migrate from
System.Tupleto the new tuple syntax in C# 7.0 and Visual Basic 15.5.
HttpCookieobject from a string and capture cookie properties such as expiration date and path.
ExecutionStepInvoker, which allows developers to run execution steps inside their code, rather than in ASP.Net’s pre-defined pipeline. This feature is intended for libraries concerned with application execution flow.
You can access .Net Framework 4.7.1 from . It is also accessible in the and via Visual Studio 2017 15.5.