While developing custom plugins for NopCommerce 4.6, we observed significant performance issues when we built the site and opened NopCommerce through Visual Studio 2022. It takes about 6-8 minutes to open the site each time. The build completes within one minute. However, after the browser opens, the site appears after 6-8 minutes. We have optimized VS IDE. There are no delays on the DB hosted on the cloud server. When we run the site outside of VS [through ISS}, the same site is up in a few seconds.
You need a lot of memory to speed it up I have 64Gb and it takes up to 60 seconds to load up You can also unload a lot of plugins and only load the one(s) you want to debug
I have always faced the performance issue when the database is remotely hosted (2-3 times slower). So it is better to use the database locally if it is possible and as Yidna have suggested unload all the plugins if they are not on use
I have 16 GB on my dev PC and and it's usually less than 1 min from build to browser loaded. I have SSD.
If only changing code in a plugin, then configure the solution properties in Visual Studio: Configuration Properties - unselect all projects except your plugin project.