Hello
Well, I think the performance issue is mostly comming from my work environment.
I have a windows10, where I have wsl2 ubuntu installed, and in that wsl I start a centos docker container, which has all the libs/headers and cmake I can use to compile the code.
These containers contains a lot of company specific libs, that’s why we use that. Now, I start the vscode in this remote container and also install sonarlint into this container. I need to do this so it can find all the header files as well. I think this is the reason for the performance issue mostly.
Also the wsl is limited to 8GB RAM and 8 virtual cores.
But to answer your other questions about the files:
Currently the 3.4.1 SonarLint version is installed and this repo contains 28K cpp code and 2.3K C code.
This repo has some huge files unfortunately, but I always open one file at a time. For just one example there is this one .cpp file, where:
first.cpp::
The number of lines is 3812
There are 1.8k code smells in it, from which:
- 904 is cpp:S994 - A variable which is not modified shall be const qualified
- 416 is cpp:S1172 - Unused function parameters should be removed
- 315 is cpp:S109 - Magic numbers should not be used
[Debug - 07:24:54.018] Downloaded issues in 53ms
[Info - 07:25:05.786] Found 1825 issues
[Debug - 07:25:39.598] GET 200 https://sonarqube.int.net.blabla.com/api/developers/search_events?projects=blabla-project&from=2022-05-21T07%3A25%3A39%2B0000 | response time=289ms
[Debug - 07:26:39.559] GET 200 https://sonarqube.int.net.blabla.com/api/developers/search_events?projects=blabla-project&from=2022-05-21T07%3A25%3A39%2B0000 | response time=256ms
All the “Problems” are loaded and shown in the file at the second “GET 200” OK response.
second.cpp::
There is another cpp file tho, which has 15k lines (I know, I know refactor is comming…)
There are 2.7k code smells in it, from which:
- 1.6k is cpp:S994 - A variable which is not modified shall be const qualified
- 400 is cpp:S1172 - Unused function parameters should be removed
- 454 is cpp:S109 - Magic numbers should not be used
[Debug - 07:17:35.081] Downloaded issues in 226ms
[stderr] May 21, 2022 7:18:14 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
[stderr] WARNING: Unmatched cancel notification for request id 3
[stderr] May 21, 2022 7:18:19 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
[stderr] WARNING: Unmatched cancel notification for request id 4
etc, etc.. the same logs from request id 5-29
[stderr] May 21, 2022 7:19:04 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
[stderr] WARNING: Unmatched cancel notification for request id 30
[stderr] May 21, 2022 7:19:06 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
[stderr] WARNING: Unmatched cancel notification for request id 31
Then this popup window comes up and I need to repload vscode:

I tried to make the same measurements with 3.3.3 but for some reason it only found lik 150-200 issues for both files. I don’t know what settings I had wrong.
Thank you, Zoli