User forums > Using Code::Blocks

C::B - big CPU usage

(1/2) > >>

zingiel:
Hi,
why C::B uses processor very much, when it is not compiling and not linking?
What does C::B does? It uses 15..30% CPU, sometimes 50%, when I'm doing nothing in C::B.
I'm checking it in 'Process Explorer'...
Maybe some option in environment?

Regards

Game_Ender:
That is due to misuse/overuse of internal UI state update events.  So it basically boils down to a bug in CB.  Since CB is still in the "early" developement stages I don't think the CB team if focusing on optimization right now.  I am sure they would like patches to improve performance.

MortenMacFly:
Personally I don't see such hight processor load except when I open a project. But this is as expected as then the CC plugin start to do it's batch parsing. Once this is finished the processor usage is back to "normal" (nearly nothing) again. Could it be that this high processor load is nothing but the CC plugin for you, too?
With regards, Morten.

arst:
Yes, CB takes a lot of CPU on my machine (1GHz laptop).

Attached is snapshot from task-manager. CB has used 10%
CPU power almost continously, while not being used for much
of the time.

This is also with Code completion disabled.

With many laptop, the fan spins up even at modest loads, so
with CB running my fan is on for much of the time. And I do
enjoy quiet computing...

Would be interesting with some profiling to see where the
time is used.

Regards
Arst

[attachment deleted by admin]

Der Meister:

--- Quote from: Game_Ender on February 11, 2007, 02:15:46 am ---That is due to misuse/overuse of internal UI state update events.  So it basically boils down to a bug in CB.

--- End quote ---
As far as I know thomas once removed these events to check this. And if I remember correctly this did not change anything. The CPU usage was quite the same.

Anyway, this problem seems to appear not on every machine running Code::Blocks, thus it is probably an issue with some library (directly or indirectly) used by Code::Blocks. And I remember a quit long thread here in the forums with a discussion about this problem on Ubuntu.

Navigation

[0] Message Index

[#] Next page

Go to full version