User forums > Using Code::Blocks
changes between r7459 and r7460 slow down project load
cbnewbie:
I discovered something interesting. For every new project in my workspace a "Project's common toplevel path" is found - which is the same for all of my projects within that workspace. So, the number of searched directories and files (2673/59591) is also the same for all projects. But it takes a lot of time to scan them every time.
One problem seems to be that all projects within my workspace refer to external source code outside the separate project trees.
Workspace: /home/prg/Workspace/local/work/codeblocks/
Projects: /home/prg/Workspace/local/work/codeblocks/prg/*
External source: /home/prg/Workspace/local/source/*
That's why the "Project's common toplevel path" is /home/prg/Workspace/local for all projects.
OK, I do not understand why this changes between r7459 and r7460 have been made. But if they remain, couldn't the search results be cached somehow for the common toplevel path?
oBFusCATed:
There was an user who have reported a bug. See this topic for more details: http://forums.codeblocks.org/index.php/topic,15023.msg101286.html#msg101286
Jenna:
I see the problem, but how should caching work ?
Caching is normally done by the OS.
I will see if I can implement the same functionality without the dir-traverser, as it was before revision 7307.
oBFusCATed:
cbnewbie: is it slow the second time you open your workspace?
Jenna:
I started a new discussion about the ProjectDirTraverser in general:
http://forums.codeblocks.org/index.php/topic,15430.msg103592.html#msg103592
It contains a patch to be tried.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version