Skip to main content

.NET 9 is now available with several performance improvements

.NET 9 is now available, and with it comes a number of performance improvements and new functionality to support developers building with AI. 

According to Microsoft, this release features over 1,000 performance updates, one of which is that the Server GC has been altered to adapt to application memory requirements instead of the resources available in the environment. This change has resulted in a 15% increase in requests per second compared to .NET 8 and a 93% reduction in memory usage. 

“This change in approach has a profound impact in high core-count environments, where application memory is small or changes dramatically over time,” the .NET Team explained in a blog post

In addition, the .NET 9 runtime added support for Arm64 SVE and Intel AVX10, and in this release, the JIT compiler received improved performance for Arm64, loops, PGO, and bounds checks. 

.NET 9 also features updated Dynamic Profile Guided Optimization (PGO) to provide optimizations for more code patterns. 

Additionally, LINQ was optimized for common cases, and the methods Take and DefaultIfEmpty now return up to 10 times faster if the underlying array, collection, or enumerable is empty. 

And finally, low-level details of System.Text.Json have seen greater than 50% improvements across a range of operations. 

Another major theme of this release is expanding .NET capabilities for building AI into applications. 

“Companies across the industry have embraced .NET to build top-tier AI experiences for their customers including H&R Block, Blip, and KPMG. .NET powers your favorite coding assistant, GitHub Copilot, and the brand-new Microsoft Copilot experience was rebuilt from the group up with .NET,” the .NET Team wrote.

For this release, Microsoft collaborated with Semantic Kernel to provide a set of C# abstractions for the .NET ecosystem for interacting with AI services. This will make it easier for developers to integrate these services into their applications. 

Additionally, Microsoft.ML.Tokenizers features improved performance across popular model families like GPT, Llama, PHi, and Bert. It also adds support for new tokenization algorithms such as Byte-Level BPE, SentencePiece, and WordPiece. Tensor<T> also got a new type for representing multidimensional data, which simplifies interoperability between libraries.

For GitHub Copilot users, a number of new features have been added to the .NET experience, including smart variable inspection, an IEnumerable visualizer, issue resolution assistance, better AI completions for C#, and help with debugging tests.

Moving beyond AI, in ASP.NET Core, static web assets like JavaScript and CSS files are optimized during the build and publish phases. It now generates a unique fingerprint for those files, ensuring that it has a unique file name, which prevents stale versions of the file from accidentally being used. The files are also precompressed when the app is published, cutting down the download size and preventing the server from having to do compression work. 

And finally, the Blazor framework was updated with the ability to detect the component render mode at runtime and adjust rendering appropriately. Developers can also disable interactive elements during prerendering and then enable them again once the component is interactive. Additionally, the reconnection experience for apps using interactive server rendering has been updated with an improved UI, faster reconnection, and automatic reloading after a user’s connection is lost. 

“Blazor is better than ever in .NET 9 to empower you to build beautiful modern web & hybrid apps. This release brings performance improvements across all areas of Blazor, a new Blazor Hybrid and Web app template, and new APIs for developers to create delightful experiences,” the .NET team wrote. 

Other updates in .NET 9 include: 

  • Built-in support for OpenAPI document generation
  • Better security for ASP.NET Core
  • .NET MAUI updates
  • New updates to the .NET Aspire stack, such as the ability to start and stop resources from the dashboard, and new integrations with OpenAI, Ollama, Milvus, and more.

Microsoft is currently hosting .NET Conf 2024 through November 14, and will be diving deeper into the updates throughout the event. The company has also promised to publish blog posts that dive deeper into these updates in the coming months.

The post .NET 9 is now available with several performance improvements appeared first on SD Times.



from SD Times https://ift.tt/vhk7qM3

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20