News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

20.3 Slow to launch on SSD Laptop

Started by cpcfreak, July 05, 2021, 03:39:46 AM

Previous topic - Next topic

oBFusCATed

You continue to guess what the problem is. This rarely ends with solved problem. You need to use a profiler to see where time is spent. Unfortunately I cannot help much with windows guidance... Both ETW and VTune might be usable for find the root cause.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cpcfreak

Yes, thanks for the advice.

fwiw, I've given VTune a initial run and it's shown some anolmaly, in that when the C::B compiler plugin is enabled the CPU is idle for 70% of the time between launch and the GUI opening, so I'm not sure what that means if the problem is CPU bound.

I'll need a run quite a few variants on C::B launch to see if I can make sense of this, and if I find anything solid I'll report.

cacb

Quote from: cpcfreak on July 08, 2021, 03:28:55 AM
There are two oddities in CPU usage during Code::Blocks launch as it is parsing the lexers, during that moment you see the program icon flashing on the taskbar.

Fwiw, I have a 4-5 year old laptop with Win10 and I just installed  codeblocks-20.03mingw-setup.exe on it. Once installed, it didn't detect the MinGW compiler, but it was easy to tell it to auto detect it.

Then, when starting Code::Blocks I observe the same icon flashing on the taskbar as you describe, however the process does not take much more than ~10 seconds. If I disable the compiler plugin, the icon flashing on the taskbar goes away, and the startup process is quicker. Once the compiler plugin is re-enabled, the icon-flashing returns, but it doesn't last very long. 


oBFusCATed

Quote from: cpcfreak on July 16, 2021, 01:42:11 AM
fwiw, I've given VTune a initial run and it's shown some anolmaly, in that when the C::B compiler plugin is enabled the CPU is idle for 70% of the time between launch and the GUI opening, so I'm not sure what that means if the problem is CPU bound.
You need to do a system wide profile. C::B is starting many processes to do some stuff with them at startup (mainly compilers).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

cpcfreak

Quote from: cacb on July 16, 2021, 10:13:59 AM
Then, when starting Code::Blocks I observe the same icon flashing on the taskbar as you describe, however the process does not take much more than ~10 seconds. If I disable the compiler plugin, the icon flashing on the taskbar goes away, and the startup process is quicker. Once the compiler plugin is re-enabled, the icon-flashing returns, but it doesn't last very long.
Yes, noted, on my desktop HDD that is the experience, on the SSD laptop the launch process takes between 70s and 83s when testing with VTunes but only when the compiler plugin is enabled.

cpcfreak

Quote from: oBFusCATed on July 16, 2021, 09:08:40 PM
You need to do a system wide profile. C::B is starting many processes to do some stuff with them at startup (mainly compilers).
Yes noted, I'll hopefully get to the bottom of hit and be able to post an update.

Thanks for all your assistance so far it's been invaluable.