Windows 10: Announcing .NET 6 Preview 3

Discus and support Announcing .NET 6 Preview 3 in Windows 10 News to solve the problem; Today, we are delighted to release .NET 6 Preview 3. This release is dedicated almost entirely to low-level performance features. These are the types... Discussion in 'Windows 10 News' started by Brink, May 4, 2021.

  1. Brink Win User

    Announcing .NET 6 Preview 3


    Today, we are delighted to release .NET 6 Preview 3. This release is dedicated almost entirely to low-level performance features. These are the types of improvements that many folks don’t necessarily always fully appreciate, but they help a lot for many apps. Most of these improvements apply to the CLR type system directly, either making it function faster or better interplay with modern CPUs (think “hardware accelerate the type systemâ€&#157Announcing .NET 6 Preview 3 ;). In the last few years, there have been a few key performance trends with .NET, including: using structs more liberally in libraries, and moving runtime code to C#. Both of trends are visible (directly or indirectly) in these changes. It also demonstrates continued efforts on a focused set of performance strategies.

    You will notice that two of these performance changes came Ben Adams. He’s well known for word play on his first name. In the spirit of April 1st (recently past), perhaps we can virtually rename this release to .NET 6 Preview B3n. Thanks B3n!

    You’ll also see performance contributions from Nathan Moore and SingleAccretion. Thanks!

    You can download .NET 6 Preview 3, for Windows, macOS, and Linux.


    See the ASP.NET Core post for more detail on what’s new for web technology. For EF Core, Preview 3 includes several bug fixes and ongoing improvements to infrastructure to support upcoming features including compiled models and temporal tables

    .NET 6 has been tested with Visual Studio 16.10 Preview 1 and Visual Studio for Mac 8.9. We recommend you use those builds if you want to try .NET 6.

    For Linux users: .NET SDK 6 Preview 3 resolves an issue where NuGet restore fails on Linux due to expired NuGet certificates and unfortunate interactions with changes made to root certificates stores on Linux, carried by ca-certificates and nss packages. Please update your .NET 5 and .NET 6 SDK deployments on Linux, ASAP.

    Support

    .NET 6 will be will be released in November 2021, and will be supported for three years, as a Long Term Support (LTS) release. The platform matrix has been significantly expanded.

    The additions are:

    • Android.
    • iOS.
    • Mac and Mac Catalyst, for x64 and Apple Silicon (AKA “M1â€&#157Announcing .NET 6 Preview 3 ;).
    • Windows Arm64 (specifically Windows Desktop).

    .NET 6 Debian container images are based on Debian 11 (“bullseyeâ€&#157Announcing .NET 6 Preview 3 ;), which is currently in testing.

    Libraries

    The following APIs and improvements have been added to the .NET libraries.

    Faster handling of structs as Dictionary values

    A new unsafe api — CollectionsMarshal.GetValueRef — has been added that makes updating struct values in Dictionaries faster. The new API is intended for high performance scenarios, not for general purpose use. It returns a ref to the struct value which can then be updated in place with typical techniques.

    Prior to this change, updating struct dictionary values can be expensive for high-performance scenarios, requiring a dictionary lookup and a copy to stack of the struct; then after changing the struct, it needs to be assigned to the dictionary key again resulting in another look up and copy operation. This improvement reduces the key hashing to 1 (from 2) and removes all the struct copy operations.

    Example:

    Code:
    Credit to Ben Adams.

    Faster interface checking and casting

    Interface casting performance has been boosted by 16% – 38%. This improvement is particularly useful for C#’s pattern matching to and between interfaces.

    Announcing .NET 6 Preview 3 112411698-3f413600-8d15-11eb-899f-5a0450524b08.png


    Method Implementation Mean Version Ratio Improvement IsInterface1 Interfaces1 2.166 ns .NET 6 Preview 2 1.000 IsInterface1 Interfaces1 1.629 ns .NET 6 Preview 3 0.752 x1.3 IsNotImplemented Interfaces1 2.166 ns .NET 6 Preview 2 1.000 IsNotImplemented Interfaces1 1.950 ns .NET 6 Preview 3 0.900 x1.1 IsInterface1 Interfaces6 2.155 ns .NET 6 Preview 2 1.000 IsInterface1 Interfaces6 1.936 ns .NET 6 Preview 3 0.898 x1.1 IsInterface2 Interfaces6 2.161 ns .NET 6 Preview 2 1.000 IsInterface2 Interfaces6 1.908 ns .NET 6 Preview 3 0.883 x1.1 IsInterface3 Interfaces6 2.188 ns .NET 6 Preview 2 1.000 IsInterface3 Interfaces6 1.672 ns .NET 6 Preview 3 0.764 x1.3 IsInterface4 Interfaces6 2.346 ns .NET 6 Preview 2 1.000 IsInterface4 Interfaces6 1.965 ns .NET 6 Preview 3 0.838 x1.2 IsInterface5 Interfaces6 3.122 ns .NET 6 Preview 2 1.000 IsInterface5 Interfaces6 2.173 ns .NET 6 Preview 3 0.696 x1.4 IsInterface6 Interfaces6 3.472 ns .NET 6 Preview 2 1.000 IsInterface6 Interfaces6 2.687 ns .NET 6 Preview 3 0.774 x1.3 IsNotImplemented Interfaces6 3.644 ns .NET 6 Preview 2 1.000 IsNotImplemented Interfaces6 3.071 ns .NET 6 Preview 3 0.843 x1.2
    One of the biggest advantages of moving parts of the .NET runtime from C++ to managed C# is that it lowers the barrier to contribution. This includes interface casting, which was moved to C# as an early .NET 6 change. Many more people in the .NET ecosystem are literate in C# than C++ (and the runtime isn’t even regular C++). Just being able to read some of the code that composes the runtime is a major step to developing confidence in contributing, in its various forms.

    Credit to Ben Adams.

    Runtime: Codegen

    The following changes improve code generation in RyuJIT, either making the process more efficient or the resulting code faster to run. A recent post on Loop Alignment does a great job of demonstrating the level of consideration and detail that is required for optimal performance.

    Optimizations:


    Dynamic PGO


    Keep structs in register


    Completed .NET 6 EH Write Thru



    Announcing .NET 6 Preview 3 112660549-d213ca80-8e12-11eb-8f6b-6c692dd1824a.png


    Tools: Initial .NET Hot Reload support now available for web apps

    Early support for .NET Hot Reload is now available for ASP.NET Core & Blazor projects using dotnet watch. .NET Hot Reload applies code changes to your running app without restarting it and without losing any app state. Code changes that cannot be applied to the running app can still be applied by rebuilding and restarting the app.

    This is just the first step in our more comprehensive plan to bring this technology to all .NET developers including desktop (WPF, WinUI, WinForms), cross-platform client scenarios in .NET MAUI, and more. .NET Hot Reload will be supported with these additional platforms in future preview releases of .NET 6. In addition, we will also make .NET Hot Reload available as an integrated experience in future Visual Studio releases.

    For more details on trying out hot reload with web app projects, see ASP.NET Core updates in .NET 6 Preview 3

    Closing

    We’re now about half way through the .NET 6 release, at least in terms of feature development. You can read about other features that have been added, in the Preview 2 and Preview 1 releases. We expect some larger features to land in the next few previews before we start into focusing on quality in the release candidate builds.

    I started the post raising visibility on some great community contributions. Some community folks are using the GitHub Sponsors program to support spending more of their time on contributing to .NET. That’s great. Ben is an example. I encourage you to consider supporting community developers improving .NET, perhaps focused on a part of the product you depend on significantly. Its a good opportunity to invest in your supply chain.

    Richard Lander
    Program Manager, .NET Team


    Source: https://devblogs.microsoft.com/dotne...t-6-preview-3/

    :)
     
    Brink, May 4, 2021
    #1
  2. Brink Win User

    Announcing .NET 6 Preview 3

    Source: https://devblogs.microsoft.com/dotne...t-6-preview-3/


     
    Brink, May 5, 2021
    #2
  3. Brink Win User
    Announcing .NET Core 3 Preview 2


    Read more:

    Tweet



    — Twitter API (@User) View on Twiiter[/quote]
     
    Brink, May 5, 2021
    #3
  4. Brink Win User

    Announcing .NET 6 Preview 3

    Announcing .NET Core 3 Preview 2

    Read more:

     
    Brink, May 5, 2021
    #4
Thema:

Announcing .NET 6 Preview 3

Loading...
  1. Announcing .NET 6 Preview 3 - Similar Threads - Announcing NET Preview

  2. Announcing .NET 6 Preview 6

    in Windows 10 News
    Announcing .NET 6 Preview 6: We are happy to release .NET 6 Preview 6. Preview 6 is the second to last preview before we enter the RC period. There will be two RCs. This release itself is relatively small, while Preview 7 will be bigger. After that, we’re down to quality fixes until the final...
  3. Announcing .NET 6 Preview 2

    in Windows 10 News
    Announcing .NET 6 Preview 2: Today, we are glad to release .NET 6 Preview 2. It includes new APIs, runtime performance improvements, and early builds of .NET MAUI. It also includes builds for Apple Silicon, which were missing for Preview 1. After the announcement of the overall .NET 6 release, we’re...
  4. Announcing .NET 6 Preview 1

    in Windows 10 News
    Announcing .NET 6 Preview 1: Today, we are happy to deliver the first preview of .NET 6 and share what you can expect from the new release. We have been defining the overall shape of the release for the last few months, including a large set of new experiences and capabilities. The heart of .NET 6 is...
  5. Announcing .NET 5.0 Preview 3 now available

    in Windows 10 News
    Announcing .NET 5.0 Preview 3 now available: Today, we’re releasing .NET 5.0 Preview 3. It contains a set of new features and performance improvements. We’re continuing to work on the bigger features that will define the 5.0 release. The .NET 5.0 Preview 1 post covers what we are planning on...
  6. Announcing .NET Core 3.1 Preview 3

    in Windows 10 News
    Announcing .NET Core 3.1 Preview 3: Today, we’re announcing .NET Core 3.1 Preview 3. .NET Core 3.1 is a small and short release focused on key improvements in Blazor and Windows desktop, the two big additions in .NET Core 3.0.. It will be a long term support (LTS) release. We are coming near the end of the 3.1...
  7. Announcing .NET Core 3 Preview 4

    in Windows 10 News
    Announcing .NET Core 3 Preview 4: Today, we are announcing .NET Core 3.0 Preview 4. It includes a chart control for Windows Forms, HTTP/2 support, GC updates to use less memory, support for CPU limits with Docker, the addition of PowerShell in .NET Core SDK Docker container images, and other improvements. If...
  8. Announcing .NET Core 3 Preview 3

    in Windows 10 News
    Announcing .NET Core 3 Preview 3: Today, we are announcing .NET Core 3.0 Preview 3. We would like to update you on the .NET Core 3.0 schedule and introduce you to improvements in .NET Core SDK installers, Docker containers, Range, and Index. We also have updates on the Windows Desktop and Entity Framework...
  9. Announcing .NET Core 3 Preview 2

    in Windows 10 News
    Announcing .NET Core 3 Preview 2: .NET Core 3.0 Preview 2 is now available and it includes a bunch of new updates to ASP.NET Core. Here's the list of what's new in this preview: Razor Components SignalR client-to-server streaming Pipes on HttpContext Generic host in templates Endpoint routing updates Get...
  10. Announcing .NET Core 2.2 Preview 3

    in Windows 10 News
    Announcing .NET Core 2.2 Preview 3: Today, we are announcing .NET Core 2.2 Preview 3. We have made more improvements to the overall release that we would love to get your feedback on, either in the comments or at dotnet/core #2004. ASP.NET Core 2.2 Preview 3 and Entity Framework 2.2 Preview 3 were also...