User forums > Using Code::Blocks
C::B : a CPU consumer ?
Rockeye:
Hi !
It seems that C::B always consumes CPU time...
On a Athlon XP mobile 1800+, it uses approximately 1% for 80% of the time, but reaches some peaks at 23% sometimes !! These measures were done at the welcome screen, but with an opened project with no file opened, it is the same.
With a project of 20 files, and 7 files opened (4 .cpp, 3 .h), the CPU time required by C::B is often over 35% :shock: and reaches sometimes 70% ... The fact that the application is minimized or not doesn't affect these results.
Why an IDE need such computation power ??? Is it a bug in a fonctionnality ?
My C::B : revision 3145 nightly build 25 oct. 2006
Note : it is not due to this revision, I have observed this since I adopt C::B, three month ago.
DonSixto:
I'm sorry to tell you that you are out of place.
This post offends me.
If your computer is for c++ programming, then what is the problem to spend 35 to 70% of the processor time for what your are supposed to do ?
or better, for what you are paid for ?
If you are under windows and you are programming in the same computer where the data server is running, then you are doing things wrong. You can't do this under windows, even in server 2003.
Ask your boss to buy another one.
It is not the same in linux, you can do programming and data serving in linux.
And let me tell you that I know what I'm talking about, because I'm a c++ programmer since 14 years ago.
I fed my children from my c++ programming jobs.
I repeat, this post offends me.
Feel free to ban this.
Ceniza:
One of Code::Blocks' most known issues is the high CPU usage when you move the mouse around, and it should have a high CPU usage while the CodeCompletion plugin is parsing too. If you don't touch it and CodeCompletion is done, it should not take that much CPU.
Right now I have Code::Blocks opened with the Code::Blocks project loaded, all plugins loaded and CodeCompletion done parsing and the CPU usage is 0%.
If I start moving the mouse around I get about 30% CPU usage (and since it's a HT CPU you could say it's twice, 60%). I stop moving the mouse and get 0% again.
It seems to be related to the bunch of EVT_UPDATE_UI in the code and there is not a solution for it right now.
Could you check if the problem I'm describing is the one you're getting?
TDragon:
--- Quote from: DonSixto on October 26, 2006, 03:24:56 am ---And let me tell you that I know what I'm talking about, because I'm a c++ programmer since 14 years ago.
--- End quote ---
Impressive as your resume may be, Rockeye has a point. If one compares the CPU usage of Code::Blocks when idling to that of similar programs, such as Eclipse or OpenOffice, it's higher than expected.
Any possible reason to find Rockeye's post offensive escapes me. Instead of attempting to refute the invalid assumptions and blatant misinformation DonSixto's post contains, I'll simply agree with Ceniza in saying that the issue in question is undesirable, but can't currently be remedied.
Game_Ender:
That and it sucks up the cycles on Linux like crazy while I type, not enough to make it so I can type faster the screen updates but enough to create an uncomfortable feel.
Navigation
[0] Message Index
[#] Next page
Go to full version