Hello support,
with update to CodeRush version 20.2.3 we are getting performance problems:
Code2020.11.03 16:14:17.0391 Performance: Delay 14057 ms DispatcherInvoke <GetOperationApplyFunc>b__0 DevExpress.CodeAnalysis.Refactorings.CodeActionHandler+<>c__DisplayClass2_0
2020.11.03 16:14:17.0411 Performance: Delay 14071 ms VsEventHandler DocumentServices_TextDocumentSaved DevExpress.CodeRush.Foundation.CodeCleanUp.CleanUpOnSaveService TextDocumentSaved
Do you have ideas how to prevent them?
Do u need more information, e.g. an example solution?
The checkboxes for apply cleanup on action are all disabled:
Also formatting a *.cs-document is taking very long time now.
Hello Norman,
Thank you for contacting us and providing the additional information.
I see many performance delays in the log file.
To help us determine the cause of this issue, please collect additional performance logs at the moment when the performance delays occur and send them to us. To collect these logs, perform steps from the following article: How to: Collect Diagnostic Logs
Also, if it is possible, please send us the project where the issue is reproducible.
You can upload it to our secured FTP server:
Server: downloads.devexpress.com
User: UPLOAD
Password: HEREYOUARE
We are looking forward to hearing from you.
Hello Pavel,
I have the logfiles attached.
I also have a zipfile of an example project attached.
Steps to reproduce:
Have "Code Places" enabled.
Open Solution.
Wait till "Code Places" Window is loaded.
Switch to a .xaml file.
Switch to a .cs file.
Save the .cs file => the save process lasts around 30 sec.
Hello Norman,
Thank you for providing the additional information.
We will research this issue and let you know our results as soon as possible.
Hello Norman,
We analyzed your log files and found the source of performance issues. Our attempts to create types using Reflection can lead to intensive loading of the large number of assemblies in some cases inside VS. We changed our code so it will look for necessary types only among already loaded assemblies. We believe it will improve the performance on your side.
Please install this build and share your experience with us:
http://downloads.devexpress.com/Share/IDE/201106/DevExpress.CodeRush-20.2.3.20311.exe
Hello,
thank you for the new build.
It solved our performance problems.
You are welcome, Norman!
Thank you for your cooperation and assistance!
The Hotfix CodeRush 20.2.3.20311 you provided, solved the performance issues. But when the official update to 20.2.4 was installed, CodeRush turns performance down again (VS 2019 complains about CodeRush turning down performance). It helped to reinstall the hotfix 20.2.3.20311.
Btw. May it be a problem that the hotfix was installed using an exe-File, while the update was installed using a vsix or something else. My system settings in Apps & Features still report CodeRush 20.2.3.20311 installed while VS reports 20.2.4 installed.
Hello,
I am concerned to hear that the performance issues are reproducible with CodeRush v20.2.4.
I rechecked, and our changes that fix these issues are present in CodeRush v20.2.4.
Could you please help us in our further research and follow the steps below?
I look forward to hearing from you.