User forums > Using Code::Blocks
Bug Report: [#18755] C::B hangs for 20 seconds while opening large project...
dmoore:
Does this do anything to ensure relativeToCommonTopLevelPath is kept up to date? (Or is that already taken care of?)
Jenna:
--- Quote from: dmoore on October 18, 2012, 12:09:13 am ---Does this do anything to ensure relativeToCommonTopLevelPath is kept up to date? (Or is that already taken care of?)
--- End quote ---
I did not add any call to it, but if it is not kept up to date, it would be another bug.
Currently it's called in
* cbProject::Open()
* cbProject::AddFile()
* ProjectFile::Rename()
* ProjectManager::OnRemoveFileFromProject()
dmoore:
--- Quote from: jens on October 17, 2012, 11:54:55 pm ---Not much in absolute time, but about 25 to 30 %.
I will test it on windows soon, also with mixed volume projects.
--- End quote ---
On windows without the volume stuff, I got an improvement from about 4000 to about 400 ms to open the C::B project. (Loading and the two BuildTree calls) Will test your patch tomorrow if I have time.
rickg22:
OK, I applied the patch (manually), and the project opens INSTANTLY! :D
Unfortunately, none of the files can be opened :P maybe I applied it wrong? ???
EDIT: Oops, the extensions handler plugin was disabled :P
OK, confirmed for me. Congratulations, Jens! With your patch, loading time goes down from 22 seconds to ZERROW.
Apply the patch, Scotty! Er, I mean, Jens.
(Oh, and after this is patched, remember to do something about the double loading)
Jenna:
To make it clear, the real solution comes from dmoore, MortenMacFly fixes a problem when calculating the common TopLevelPath with projectfiles on different volumes, I just added a small part to skip files on different volumes when calculating the common TopLevelPath.
The real speedup comes from dmoores patch.
Now let's test it (especially on win with files spread over two and more volumes) and if all goes well it can be committed.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version