User forums > Using Code::Blocks

20.3 Slow to launch on SSD Laptop

<< < (4/5) > >>

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.

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.

--- End quote ---

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.

--- End quote ---
You need to do a system wide profile. C::B is starting many processes to do some stuff with them at startup (mainly compilers).

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.
--- End quote ---
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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version