You can have a buffer parsed or not depending on which minor modes
you turn on by default. A change I made recently will prevent the
semantic database from causing a parse if it needs one, for example.
Other modes pretty well requires a parse, such as
As recently suggested, the next version of semantic will also
include a hook so you can ask semantic to never parse files based on
code you write. Thus, you could prevent a parse of whatever size you
want. I'll discuss that in the release notes.
>>> Colin Marquardt <c.marquardt@...> seems to think that:
>I recently deal with big C files. These take quite some time to load
>due to semantic parsing them.
>What would be nice is a variable that holds either a maximum number of
>tokens to parse, or a file size limit (in bytes), or a line number limit,
>or all of the above (then any of the limits reached aborts semantic).
>Not sure what would be needed to make this limit apply to the supported
>languages in the same way, thinking in terms of e.g. a language that is
>very hard to parse and thus makes parsing slow vs. an "easy", quick to
>parse language (which thus could have higher limits).
>Maybe a timeout is better than the size limits above? Would that be
>implementable as easily?
> How long did it take you to parse *this* sentence token? :)
>cedet-semantic mailing list
Eric Ludlam: zappo@..., eric@...
Home: http://www.ultranet.com/~zappo Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org