Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: rickg22 on June 21, 2007, 05:36:37 pm

Title: Offline class browser building?
Post by: rickg22 on June 21, 2007, 05:36:37 pm
Most of the bottleneck caused by the Code Completion plugin after parsing a file, has to do with rebuilding the class browser.

So I got an idea. Why not making an OFFLINE tree class? One that, when opening a branch, it will load from disk/memory the appropriate values? When a branch is closed, those branches will be released. Therefore, saving us a lot of memory in the process.

By default, nodes with children will have only ONE children, whose title is "Loading..." :-)

Now it seems to me that this COULD be implemented as short-term, i.e. on time by RC3.

What do you think?
Title: Re: Offline class browser building?
Post by: mandrav on June 21, 2007, 06:01:44 pm
Rick, it already works like that. The tree branches are created as you expand them, not before...
Title: Re: Offline class browser building?
Post by: rickg22 on June 22, 2007, 08:12:31 am
 :shock:

Wow. When was that change done?

...

WOW! And it uses a worker thread!!  :D

uh... question. Then why is the interface still slow when saving files? Those 1.5 seconds after each save are still a torture... :(
Title: Re: Offline class browser building?
Post by: rickg22 on June 27, 2007, 12:49:32 am
I noticed something. When adding lots of symbols to the class browser, it doesn't take long. But removing them (i.e. by switching project) is very slow. Why?