User forums > Help
Codeblocks long startup time
BlueHazzard:
@Cappedcrusader12
How good are you with computer?
Are you able to compile codeblocks by yourself?
Can i send you a compiled version of codeblocks with debug symbols? Maybe over WeTransfer?
@AndrewCot Are your builds with debug symbols?
Edit: i should say, that i looked at codeblocks startup with IntelVtune and i can not really find some slow parts, beside plugin loading and there specially a very slow GetLongPathName, but this should not lead to 30 sec loading time....
AndrewCot:
@BlueHazzard I have run both the devel31_64 and output31_64 binaries and they both start between 2 and 3.5 seconds depending on if the GNU GCC exe can be found as the code exits early if the gcc.exe cannot be found.
My analysis, which is based on adding timing output to the log and as such is crude indicates that the slow part appears to be the code in the AutoDetectInstallationDir() function when there are allot of compilers that are registered. I have refactored the AutoDetectInstallationDir() code as part of ticket 1117 as this was needed in order to determine if the compiler was not found or invalid and the code was convoluted and hard to follow (aka maintain), but ticket 1117 is queued up and there are other tickets I want to get resolved before it. The timing output to the log is included in my latest unofficial installer release.
I have tested using Miguel's config and it does not cause the load to slow down. I can only assume, which could be wrong, is that the directories being searched in the startup on a few machines cause the slowdown due to something specific on those machines. This is why I asked last month for Cappedcrusader12 to supply the compilers and directories so I could try and replicate the issue be changing my setup to hopefully match.
Miguel Gimenez:
I have experienced the slowdown (also 30 seconds) when mingw32-gcc.exe is in the system path.
AndrewCot:
Can you post your path?
Miguel Gimenez:
We have discussed this already, please see r12661 that includes your proposed changes to options_gcc.xml
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version