News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Code::Blocks slow as molasses

Started by Jorg, November 28, 2005, 08:45:21 PM

Previous topic - Next topic

SirMike

I can also add that tested those apps with disabling any possible options related to editor.

takeshimiya

SirMike: could you try to profile Code::Blocks?

SirMike

Quote from: Takeshi Miya on April 29, 2006, 02:13:52 PM
SirMike: could you try to profile Code::Blocks?

Sure - cannot do it right now but I'll try as soon as I'm back at home.

SirMike

OK, I recompiled C::B with -pg and ran gprof.

I just fired C::B, wrote simple program (like Hello World with some functions) copied some text, scrolled several times.

You can find the result in an attached file.

[attachment deleted by admin]

thomas

For such profiling to be effectively usable, you have to disable all plugins and scroll for a long time (20-40 seconds). For profiling to be valid, the thing you want to measure must be isolated as much as can be done.

Otherwise, the CPU time that goes into startup (loading plugins, config, lexers) skews the measuring beyond any good use. Imagine what happens if the code parser runs over your source while you scroll. What will appear in the profile?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

SirMike

Weird, I did more scrolling and typing but results are almost the same this time :|

[attachment deleted by admin]

Sherwood

I have had the same speed problem with debian etch.
I don't think it's a Code::Blocks problem: The SAME .deb I used in debian etch works fine on Ubuntu 5.10 (which I just installed).

The problem must be in a new version of a Code::Blocks dependency (wx, provably).

We could isolate the problem, trying with increasing versions of the libraries used by Code::Blocks...
I know, that's a pain in the ass, but...

- SW

By the way, this one is the nicets IDE I know! Keep going!