Author Topic: Code::Blocks freezes for 2-5 seconds after file save  (Read 6471 times)

darus

  • Guest
Code::Blocks freezes for 2-5 seconds after file save
« on: October 13, 2006, 12:57:35 pm »
I'm using build Oct 11 2006 for Windows.
After I press CTRL+S, CB saves the file (filename on files tab loses the '*'), and then it just don't respond for several seconds.

darus

  • Guest
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #1 on: October 19, 2006, 08:17:56 am »
Build Oct 18 2006, problem is still there :(

cpprooky

  • Guest
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #2 on: October 19, 2006, 08:53:45 am »
I don't have this problem with Oct 18 Build ! Even on a large file.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #3 on: October 19, 2006, 09:03:43 am »
hey guys, don't worry about,

this depends on how much data the codecompletion plugin has to work on.
when it parses a large library like wxWidgets, it takes some time to do this ....zzz...

this is known and will be corrected, but it is not a trivial change and will need some time.

so long
tiwag

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #4 on: October 19, 2006, 09:07:10 am »
hey guys, don't worry about,

this depends on how much data the codecompletion plugin has to work on.
when it parses a large library like wxWidgets, it takes some time to do this ....zzz...

this is known and will be corrected, but it is not a trivial change and will need some time.

I think I 'm going to start counting the number of times I have to say this :).
It's *not* the parser but the updating of the symbols tree...
If you change the symbols view to "Current file", 2-5 seconds will become more like 0.1-0.3 seconds (for your average file).
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #5 on: October 19, 2006, 09:11:35 am »
I think I 'm going to start counting the number of times I have to say this :).
It's *not* the parser but the updating of the symbols tree...

initial starting count value =  128    :P    (guessed)

Raedwulf

  • Guest
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #6 on: October 19, 2006, 09:14:47 am »
If you change the symbols view to "Current file", 2-5 seconds will become more like 0.1-0.3 seconds (for your average file).

Where's do I set this? I've been having the problem for quite a while, and its getting me down :P.

Thanks

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #7 on: October 19, 2006, 09:17:49 am »
If you change the symbols view to "Current file", 2-5 seconds will become more like 0.1-0.3 seconds (for your average file).

Where's do I set this? I've been having the problem for quite a while, and its getting me down :P.

it's in the symbol browser tree

View: " ... "
« Last Edit: October 19, 2006, 09:19:30 am by tiwag »

Raedwulf

  • Guest
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #8 on: October 19, 2006, 09:19:04 am »
Wow thanks, never knew that. Hey - it runs hell fast now :)

Thanks.

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #9 on: October 19, 2006, 09:26:22 am »
I guess updating or creating the symbols tree in a separate thread won't work due to concurrency issues?

If true, what about hiding the tree (and showing a message like "Please wait..." instead) and updating/creating it in a separate thread and showing it again after the thread for updating/creating has finished? Could this work?
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #10 on: October 19, 2006, 09:49:07 am »
I guess updating or creating the symbols tree in a separate thread won't work due to concurrency issues?

If true, what about hiding the tree (and showing a message like "Please wait..." instead) and updating/creating it in a separate thread and showing it again after the thread for updating/creating has finished? Could this work?

It is in a separate thread but we 're having problems with it. Actually, we must call wxGuiMutexEnter/Leave which locks the whole gui anyways. It's what wx needs when a different thread needs to operate on a control.
We 're currently considering alternative ways for fixing this. Hopefully, it won't take long.
Be patient!
This bug will be fixed soon...

darus

  • Guest
Re: Code::Blocks freezes for 2-5 seconds after file save
« Reply #11 on: October 20, 2006, 09:07:10 am »
If you change the symbols view to "Current file", 2-5 seconds will become more like 0.1-0.3 seconds (for your average file).

Yes, it works! Thanks!