User forums > Using Code::Blocks
Time used to open a file
mandrav:
I 'm experiencing the same issue too and I 'm planning to investigate it more in the next few days. As soon as I find the culprit, I 'll fix it. Please be patient.
MortenMacFly:
Yiannis: I believe it may be related to the lexers. If you use way less lexers it seems to work faster.
@all: Can you try that, please?
Jenna:
--- Quote from: MortenMacFly on April 19, 2011, 06:54:06 pm ---Yiannis: I believe it may be related to the lexers. If you use way less lexers it seems to work faster.
@all: Can you try that, please?
--- End quote ---
There seems to be no difference, even if I remove all lexers except the c++-lexer.
Also all plugins except the compiler-plugin have been removed.
I opened the C::B project with some files (less than 10) open.
If no files are to be opened the project opens almost immediately.
oBFusCATed:
--- Quote from: jens on April 19, 2011, 07:22:31 pm ---If no files are to be opened the project opens almost immediately.
--- End quote ---
I've opened all files in my debugger_gdbmi plugin, closed the workspace and opened it again.
The second opening took 2-3 seconds, it was relatively fast, but it is slower than no-files-to-be-opened case.
I could see how every file is opened, then redrawn, bla bla...
mandrav:
--- Quote from: MortenMacFly on April 19, 2011, 06:54:06 pm ---Yiannis: I believe it may be related to the lexers. If you use way less lexers it seems to work faster.
@all: Can you try that, please?
--- End quote ---
I think not.
The exact problem I 'm seeing is that it takes a *lot* of time (about a second each) to reopen each previously opened file while loading the project. When opening a project that has no open files in the layout, the loading is blazingly fast.
From a very quick glance I had the other day, I feel it's the creation of the editors that's slowing everything down. I will investigate more though.
At first I suspected the encoding detection but that takes a couple of milliseconds so that's not it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version