Skip to main content

What, develop up to 3 TIMES FASTER? ๐Ÿค”

โœ… Yes, youโ€™re reading the right thing.

Now you might be wondering how is this possible??

In that article I talked quite a bit about the new features. To put you a little bit in context ๐Ÿ‘‡

  • 64-bit version
  • New user interface
  • Integration with .NET MAUI

And yes, those new features were very cool and amazing. They looked like they were going to be amazing and that they were going to improve performance a lot. But those are not all the new features, the best one that will blow your mind is missing… ๐Ÿคฏ

Hot Reload plus

If you are not familiar with Hot Reload, donโ€™t worry, you are in the right article to understand it and MORE.

But if you already knew what it was you might be wonderingโ€ฆ.

What does โ€œplusโ€ mean? ๐Ÿค”

This adjective was given by me, because when a couple of months ago Microsoft made public this feature, there was hardly any information about it, and just recently they have unveiled many new features of Hot Reload and yes, there are also PERFORMANCE TESTS!

So stay till the end not to miss anything. ๐Ÿ˜Ž

What is Hot Reload?

To understand all this you first need to understand what Hot Reload is.

This feature allows you to make changes to the interface while the project is in debugging and apply them without having to restart debugging. That is to say:

WE CAN MAKE CHANGES IN THE APPLICATION WHILE IT IS RUNNING IN REAL TIME ๐Ÿคฏ

๐Ÿ“šIf you want to try this:

  • Simply install .NET 6 and Visual Studio 2022
  • Run your app through the Visual Studio debugger (F5)
  • When your app is running, you will be able to make changes to the code and apply them with the new โ€œapply code changesโ€ button.
image 24
Visual Studio 2022 Hot Reload Button

In upcoming releases, .NET Hot Reload will also be available for Android, iOS and macOS, and we will also integrate XAML Hot Reload and Visual Live Tree.

The Visual Studio 2022 Hot Reload

We already saw a while ago that Microsoft focused on scalability with the initial 64-bit Visual Studio release. And most interesting was this image, which showed how Visual Studio could open 1,600 projects and 300,000 files in a matter of seconds ๐Ÿ‘‡

image 2
Visual Studio 2022 scaling capability

This really is INCREDIBLE! The scalability is huge and no one would have any problem anymore in developing huge solutions. But of course, Microsoft is Microsoft and I knew they werenโ€™t going to stop there, they were bringing something else they hadnโ€™t shown yetโ€ฆ until today๐Ÿคฏ

In this latest update, specifically Preview 4, Microsoft has finally unveiled a bunch of performance and debugging improvements.

If I were Microsoft I would have thought that way too:

Developer๐Ÿง”: Weโ€™ve improved scalability tremendously! Weโ€™ve managed to optimize Visual Studio so much that projects can now be enormous!๐Ÿค—

Project manager๐Ÿ‘ฑโ€โ™‚๏ธ:Great! Now letโ€™s take a break๐Ÿ˜Ž

Developer๐Ÿง”: Break? I donโ€™t have that word in my dictionary ๐Ÿฑโ€๐Ÿ‘ค

image 3
Developerโ€™s words before he was hired

(And so began the performance improvement implementation of Visual Studio)

Back to where we were going.

Microsoft focused on improving the speed of many types of operations in Visual Studio.

Letโ€™s see what it brings ๐Ÿ‘‡

New Hot Reload improvements

  • Optimization when processing the symbol database.
  • 11% increase in the semantic placement process in IntelliSense.
  • Improvement X2 when expanding elements in our solution explorer.

And what has surprised me the most, is that now, the file search is up to X3 FASTER!!!

This Hot Reload that we are talking about also brings integration with Razor and CSS pages:

  • Razor: Now when we are making changes to the C# code in any Razor file, we will simply have to โ€œsaveโ€ and all the changes will be automatically made in our ASP.NET application, and of course, without having to recompile everything again manually ๐Ÿ˜‰
  • CSS: Now CSS will have the Hot Reload implementation, so we can make any change and when we save it, that change will be effective instantly (as long as there are no errors in the code) otherwiseโ€ฆ BOOOM ๐Ÿ’ฅ
image 4
Trying to run code with errors ๐Ÿ˜ฅ

And this is all? NO! So letโ€™s move on.

The next new features that Visual Studio 2022 brings are ๐Ÿ‘‡

  • App Reset: With this feature you will be able to restart your running applications very easily. The best of all is that it doesnโ€™t matter if you started the application with the debugger or without it. This is mainly included, in short, in case Hot Reload fails.
  • Hot Reload on save: In previous versions you could only use Hot Reload with ASP.NET projects. Now with this new update you can do it with any project that supports the Hot Reload feature, so all changes will be applied on save.
  • New configuration access: There will now be a new Hot Reload configuration panel to provide a better experience when using Hot Reload. This panel will be located under the โ€œoptionsโ€ tab.
  • New Hot Reload button: they have updated the icon and now the button will change from being called โ€œapply code changesโ€ to โ€œHot Reloadโ€ (I think this is the feature that excites me the most).
image 25
New Hot Reload button design

To conclude my conclusion, these features are very, very GOOD, especially in terms of performance when developing any kind of huge application that requires a lot of resources. We will follow very closely any news from Microsoft about future updates and โ€œimprovementsโ€.

(I put it in quotation marks because many times these โ€œimprovementsโ€ turn out to be โ€œdisadvantagesโ€ and end up worsening performance or hindering usability).

And my other conclusion, which is very deep, is that by Microsoft optimizing Visual Studio, all developers will be forced to optimize the amount of daily coffees, because they would not be synchronized with Microsoft updates.

Fill out my online form.

Leave a Reply