Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
lexer file loading ...
tiwag:
... lasts ages :(
i think this point should really be improved.
what can be done to improve the loading time of these lexer files ? :)
Michael:
Hello,
May be it could be useful to just load only the "most important" of them at the beginning (C::B default) and then let the user decides if she/he needs additional ones or not (as with the plugins). For example, I do not use f77 lexer, so why I have to load it?
Additionally, a background thread could be used to load the lexers. Moreover, the use of SAX could also be helpful to speed up the process.
Best wishes,
Michael
mandrav:
This is the speed penalty we have to pay for using TinyXML. It makes everything easier for us, but it's a little slow, especially when parsing large nodes (like the lexers' keywords)...
Michael:
--- Quote from: mandrav on April 04, 2006, 03:51:51 pm ---This is the speed penalty we have to pay for using TinyXML. It makes everything easier for us, but it's a little slow, especially when parsing large nodes (like the lexers' keywords)...
--- End quote ---
Yes, TinyXML is a nice piece of code. Pity that it does not implement SAX or pull SAX.
Best wishes,
Michael
Ceniza:
Wow, thinking about how slow was Code::Blocks loading because of those lexers was the last thing I did when I went to sleep. Now I wake up and I find a post about it.
Are you spying me? :P
I support Michael's idea of just loading the most important ones and somehow letting the user decide if more lexers should be loaded later.
That would also add an extra Tip Of The Day :)
Navigation
[0] Message Index
[#] Next page
Go to full version