[cedet-semantic] Speed question

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.
jan@...

Thread view

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.
jan@...

>>> Jan Sacharuk <jan@...> 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: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org

Community

Help

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details