Code::Blocks Forums

User forums => Help => Topic started by: darus on October 13, 2006, 12:57:35 pm

Title: Code::Blocks freezes for 2-5 seconds after file save
Post by: darus 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.
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: darus on October 19, 2006, 08:17:56 am
Build Oct 18 2006, problem is still there :(
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: cpprooky on October 19, 2006, 08:53:45 am
I don't have this problem with Oct 18 Build ! Even on a large file.
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: tiwag 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
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: mandrav 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).
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: tiwag 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)
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: Raedwulf 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
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: tiwag 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: " ... "
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: Raedwulf on October 19, 2006, 09:19:04 am
Wow thanks, never knew that. Hey - it runs hell fast now :)

Thanks.
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: Der Meister 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?
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: mandrav 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.
Title: Re: Code::Blocks freezes for 2-5 seconds after file save
Post by: darus 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!