toolchainX
toolchainX

Reputation: 2057

CEDET semantic is too slow to find candidates of the header files of libraries

I am using the glew and freeglut libraries (both of which include huge numbers of functions and constants declarations) to write opengl programs under Emacs. I use the CEDET's default semanticdb as the back end of auto-complete at first. However the Emacs freezes and it cost about 20 seconds to pop the candidates of auto-complete when I typing gl(since there is many GL_XXX constants and glxxx function in the header files of glew and glut). the pop-up of the candidate is too slow, is there a way to speed it up still using the CEDET? or is there another way to walk around it? by using the gtags? how?

Since there are so many functions and constants declarations in the header files, I am heavily rely on the auto completion. I am using the CEDET 1.1, does the new version of CEDET solve the problem?

Upvotes: 2

Views: 787

Answers (1)

Alex Ott
Alex Ott

Reputation: 87174

Use of gtags should potentially speedup calculation of alternatives. Does slow completion happens always, or only on first use? This could be caused by parsing header files, etc., and later this should be caches in semanticdb (if you've enabled it)

Upvotes: 1

Related Questions