Thread: [cedet-semantic] Speed question
Brought to you by:
zappo
From: Jan S. <ja...@bi...> - 2003-03-26 21:17:51
|
Since I've upgraded to Semantic 1.4.3, it's much slower opening files than it used to be. It spends a lot of time doing something that reads as 'Imenu Directory Index'. What's going on there? My emacs startup time went from about 25 seconds to well over a minute, since I have emacs reopen all the files that I was working on when I quit. As well, Semantic deals poorly with source files that have a lot of #ifdefs in them that may hide or add braces. I have a source file that has several #ifdefs and it refuses to parse it or format it correctly, since it thinks that there are unbalanced braces. Thanks, JS -- Jan Sacharuk Programmer BioWare Corp. ja...@bi... |
From: Eric M. L. <er...@si...> - 2003-03-27 00:29:28
|
>>> Jan Sacharuk <ja...@bi...> seems to think that: >Since I've upgraded to Semantic 1.4.3, it's much slower opening files than >it used to be. It spends a lot of time doing something that reads as 'Imenu >Directory Index'. What's going on there? My emacs startup time went from >about 25 seconds to well over a minute, since I have emacs reopen all the >files that I was working on when I quit. You probably want to set the variable `semantic-imenu-index-directory' to nil. For large directories, that will make things go faster. >As well, Semantic deals poorly with source files that have a lot of #ifdefs >in them that may hide or add braces. I have a source file that has several >#ifdefs and it refuses to parse it or format it correctly, since it thinks >that there are unbalanced braces. [ ... ] Yup. There isn't a very good way to deal with a pre-processor in semantic yet. As a special case "#if 0" blocks are removed. You can build lexical extensions for your most common false ifdefs to strip them out, but it requires some knowledge of Emacs Lisp. Eric -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |