Closed dsaveyn closed 6 months ago
I encounter the same experience. Running the code cleanup on the 'uncommit files' (6 staged files - few hundred lines of code) in a project of 100 files takes several minutes. Seems like the performance slowed down a lot the past weeks.
PS: As I work at the same company of @dsaveyn and if no other issues are reported, could it be linked to some of our intenal policies / antivirus settings?
Some of these commands need to recompile whole solution, which is much slower than simple transformation of a syntax tree created by parsing a single AL file. Could you try to remove these commands from CodeCleanup and check if it is still slow: "AddMissingParentheses", "ConvertObjectIdsToNames", "FixIdentifiersCase", "RemoveStrSubstNoFromError", "RemoveWithStatements",
Both me and my colleague have tried disabling the commands above but unfortunately it doesn't really help.
Our command list specified in the settings file has not changed a lot in the last couple of months. So I tried different versions of the extension and I noticed versions 3.0.53 & 3.0.54 are noticeably faster. Things are starting to slow down from version 3.0.55 and onwards.
We also check task manager to make sure no other process (like a virus scanner) was messing around, but we can't see anything relevant.
Thank you for testing it. I was able to identify the area where code is much slower now, it will be fixed in the next release.
Thank you for reporting this issue. The problem was caused by namespaces handling in the extension. I've redesigned this area, it should work much faster now.
I can confirm the cleanup is way faster now. Thank you very much, keep up the good work!
Running the code cleanup for the active editor is since today (or somewhere last week) very slow. I takes a couple of minutes to cleanup a single file. In task manager the cpu usage consumed by AZ Al Dev Tools is 25% or higher.
We are using the settings below.
I tried disabling some settings but the slowness unfortunately remains.