User forums > Help

Code::Blocks Slow Compiling

(1/2) > >>

krugman25:
I am running Ubuntu 14.04 and CB 13.12. I have compiled a project using Make, CB and KDevelop4. When I compile it using Make and KDevelop they both take around 10 minutes. When I compile using CB it takes 30 minutes. CB is definitely my IDE of choice but the 3x slower compiling is kind of painful. My only guess is the 2 are utilizing all cores and CB is only using a single core. The machine is a Mac Mini dual core I5. I did go into the compiler options and set the # of parallel builds to 4 (4 logical cores), but that didn't affect anything. Any thoughts on this?

stahta01:
Turn off all the CB plugins except for the Compiler Plugin.
If the problem goes away it is in one of the turn off plugins.

I would guess the Code::Completion (CC) plugin as the most likely cause.

It has been changed a lot since the last release; but, since I do NOT use it myself I have no idea if the slow down issue was fixed or not.
I do NOT recall building times being caused by the  CC plugin; but, I do remember many complaints about project slow to open caused by the CC plugin.

Tim S.
 

krugman25:
I did as you mentioned and turned off all of the plugins except for compiler.  My new build time was 24 minutes, so it did seem to shave off 6 minutes.  It still is noticeably longer than the make and kdev.  I find it strange that if I put 1 parallel processes or 3 parallel processes, it doesn't speed up the compile time.  It makes me think that it's not working.  It is currently using the GCC compiler, I changed it to Clang and am rerunning my test.  I will post results.

ollydbg:
Maybe, you have many warning message printed when building. I remember there are some fixes in C::B's compiler plugin to accelerate the building process. That's not in in 13.12 release. You can try a SVN head version of C::B. I'm not sure there is one nightly build release for MAC, maybe, you can build it yourself.

stahta01:

--- Quote from: ollydbg on June 21, 2015, 06:33:25 am ---Maybe, you have many warning message printed when building. I remember there are some fixes in C::B's compiler plugin to accelerate the building process. That's not in in 13.12 release. You can try a SVN head version of C::B. I'm not sure there is one nightly build release for MAC, maybe, you can build it yourself.

--- End quote ---

You might try turning off full logging and see if that helps.
Link to directions on how to turn it on. it should get you to the location to turn it off.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Navigation

[0] Message Index

[#] Next page

Go to full version