Author Topic: Offline class browser building?  (Read 7493 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Offline class browser building?
« 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Offline class browser building?
« Reply #1 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...
Be patient!
This bug will be fixed soon...

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Offline class browser building?
« Reply #2 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... :(
« Last Edit: June 22, 2007, 08:16:06 am by rickg22 »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Offline class browser building?
« Reply #3 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?