What, develop up to 3 TIMES FASTER? π€
β Yes, youβre reading the right thing.
Now you might be wondering how is this possible??
It all comes based on the article I did some time ago. 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.
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 π
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 π±βπ€
(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 π₯
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).
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.
Top comments (6)
ββ (early morning)
βββ (up until lunch)
ββ (to get through the afternoon)
Oh, and I've used 2022 Preview 4 since it came out. HUGE improvement. Both over 2019 and RIder (which I've used for the past 2-3 months).
ββββββ
Great article
ββββ
Nice
Great article.. really excited to download Visual Studio 2022
Awesome article π
ββββ β
Dev takes 5 cups coffee