Bug #17126 2010-05-03 19:52

xhpohanka

Code completion is unusably slow

Hello,

in latest versions the code completion seems to be unusable. I have downloaded latest nightly build and than tried to edit some projects. If the project is small (for ex. embedded design) everything is ok, but with larger projects (codeblocks source, wx form project, ...) every typing is extremely slow. I write 5 characters and they show up in 2 seconds. After disabling the cc plugin cb works fine.

I have found many issues related to code completion, but not relating this slow behaviour. Is there any solution? I remember that older versions worked better.

Category
Plugin::CodeCompletion
Group
 
Status
Closed
Close date
2010-10-15 12:38
Assigned to
loaden
xhpohanka 2010-05-03 19:53

I forgot. I'm running CB on Windows7.

ollydbg 2010-06-05 08:54

If you would like to upload the test project. I would like to help.

thanks

ollydbg(codeblocks forum)

xhpohanka 2010-06-07 13:34

Hello,

where can I upload the test project, please? But maybe it is not neccessary. I have tried it today with latest nightly, clean installation. I have created a new blank wxSmith project (wx sources in $wx variable). Every typing in the source is very slow. In case of a very long word (something like: asdf asasdf askdjfhaskdjfhaskldjfhaskldj) the last characters appears after several seconds.

best regards

Jan

ollydbg 2010-06-26 01:37

Hi, I'm using CodeCompletion every day, I don't have this experience this bug. (codeblocks source works quite well)

These days, we have a CodeCompletion_refector_branch, If you would like to test, You can just build that branch.

Or, you can give me the sample code, and I will do the test.

ID_57215 2010-08-11 02:25

As mentioned in the CB forum I have the same problem. I guess that the plugin has big problems with large libraries in the background to be parsed. Disabeling "GLOBAL includes" accelerates the plugin but with the cost of comfort. Coding with QT libraries is pure hell because the plugin is overextended with so much source in the background.

loaden 2010-10-15 12:38

Sorry, but I can't reproduce. Any additional information? Does it

still persist?

xhpohanka 2010-11-02 20:54

Hi, I have tested again the last svn version (6817) of Codeblocks. Behaviour is significantly better, but I think, there is still a problem.

My steps. Clean install of Codeblocks. Specify the wx variable.

Open CB source.

Wait for code parsing.

Type wx and ctrl+space ... long waiting for cc window.

Fast typing of some text (asdfj alskdj alsdkja; sdasdl ajsdl; kal) - there are small lags noticeable.

Keep some key ('a') pressed - letters are not writen until the key is released. (this concerns big projects, like cb source, smallers are ok).

I have wx source from wxPack 2.8.10. Tested on win7 and winxp. I have tested it on several computers, so i think I can't be the only one with described behaviour, or am I too sqeamish?