Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC: Expensive calls on opening new files
dmoore:
rick: let me know when you have finished making your planned changes (if you make them). after that I might release the multithreaded beast again in my local copy :lol:
David Perfors:
--- Quote from: rickg22 on June 22, 2007, 03:22:26 pm ---Yiannis: Don't worry about the thread problems! I'm not touching THAT thing (eew :-P ). It was just a suggestion, I have to admit sometimes I get misinterpreted (ah, remember the old times? :) ). I said "we" as "the team" because I don't want to meddle with multithreading. I still have open sores about that ;-)
--- End quote ---
Yes I remember the old times :lol: but it seems that you have learned a little bit of it :) (How do I know? you have just edited you're own text :P)
rickg22:
--- Quote from: Biplab on June 22, 2007, 05:08:35 am ---[
--- Quote from: dmoore on June 22, 2007, 03:35:50 am ---back to the Function Parsing code - delaying till all project files are open is good, but then it appears that the parsing occurs on the main thread, which blocks the UI until it's done, which kind of defeats the purpose of waiting...
and next problem: after the editor loses then regains focus, the function parser appears to reparse the whole file if you click on the class/function browser drop down. should only happen if file is modified right? (unless the data is released when the file loses focus?)
--- End quote ---
These problems needs attention. :)
--- End quote ---
Good news everybody, I patched that part. Now you can switch files as fast as you want, and the files won't get re-parsed.
It's in revision 4163.
dmoore:
good work rick. :D
dmoore:
--- Quote from: rickg22 on June 22, 2007, 02:23:44 am ---But I got a better solution than your patch. It's called ProjectManager::IsBusy(). Returns true when the project is loading/closing.
--- End quote ---
what about opening a file when no project is loaded? I assume that projectmanager won't be IsBusy() during that time? (could be wrong about this)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version