Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: David PONCE <david.ponce@wa...> - 2003-12-12 10:57:05
> Thanks for the reply! Following your advise I let the parser running
> over night, and yes -- it parsed the file in question successfully!
> (Must have taken > 1 hour for sure). Emacs now uses more the 110MB of
> memory with this single file :-). Given that some of my project's larger
> header files get modified relatively frequently, which of the various
> Sematics hooks is best used to prevent parsing certain files?
You can try to put the following code in your .emacs file after
semantic has been setup:
"xdisp.c" ;; A big GNU Emacs C source file!
"Semantic will not parse these C/C++ files.
They are too big/complex and it will take a while to parse them!")
(defun my-before-toplevel-parse-hook ()
"Hook run just before Semantic will parse a buffer.
It will disable parsing of big/complex C files defined in variable
(not (and (memq major-mode '(c-mode c++-mode))
(member (buffer-name) my-too-big-files))))
Feel free to improve it (maybe using regexp to match file names).
As it is, it worked for me. Hope it will work for you too.