Hi Jeff,

 

First off, I don’t experience any of the problems you are having. I’m using Emacs 21.3.1 on Windows

XP with a fairly recent, low-end machine.  Emacs is quite responsive. I’m only aware of the reparsing

because of the messages in the minibuffer.

 

Semantic by default builds index menus for entire directories and builds and stores parse data in files

on your disk drive (the “semantic database”). I find the first feature annoying and always turn it off. The

JDEE does not use the semantic database feature. So you can try turning that off, too. Maybe that will make a difference. Semantic has a variable that determines the threshold that it uses for deciding when Emacs is idling. The default is

2 seconds. You could try increasing the threshold. Semantic also has a variable that causes it not to automatically reindex a buffer every time you make a change, if the buffer is larger than a size that you specify. By default, the setting is 0, which means that it always rebuilds the index. You could try setting this to 1. This would cause it to never rebuild automatically. You’d then have to trigger the rebuilds yourself after changing files (by clicking Rescan on the Functions menu), which is not much of burden.

 

Paul

 

 


From: Jeff Peck [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 3:48 PM
To: jde@sunsite.dk
Subject: JDE-2.5.3 SemanticDB: too much of a good thing?

 

I just upgraded to NT Emacs 21.3.1 (i386-mingw-nt5.1.2600) and JDEE 2.3.5

Plenty of new features, but i'll need to read a bunch to learn to appreciate them.

 

My current concern is with semantic and its continuous background parsing.

Which would not be so bad, but contrary to the documentation, it does not 'break'

when there is keyboard input. on the contrary the kbd/gui freezes (1-20 secs) while semantic does its thing.

And it does it (parsing/freezing) more or less continously/asynchronously while i'm editing... painful.

 

In *Messages* are comments like:

Wrote c:/Data/Programs/java/util/Arg.java
Update Tag Table: Invoke [2 times]
Building Arglist.java Semantic directory index imenu [2 times]
Building Arglist.java.~2~ Semantic directory index imenu [2 times]
Building NArglist.java Semantic directory index imenu [2 times]
Building Reflect.java Semantic directory index imenu [2 times]
Mark set

Sometimes the series of "Building ... index imenu[]" repeats every minute or so

 

Note: Each line appears [2 times], is it really parsing twice? or just sending the message twice?

Note: Even non-modified buffers (like the read-only Arglist.java.~2~) are being rescanned repeatedly...

 

Is this normal/expected? or am I badly configured? Where to I look to improve this?

[this didn't seem to be a problem in my previous JDEE 1.x.x installation]

The semantic docs talk about how to enable only partial features, but i don't do any of that,

i assume it is all setup by jde-mode; can i tune/modify without breaking everything?

 

My underlying grump is that i'm an old-dog, all i really want is the syntax coloring, compile/run/debug key bindings

and for Meta-. to work;  All the semantic analysis does not seem to link into M-. so what is the point of that CPU hog?

And how do i get things like Arglist.java.~2~ *out* of the semantic db/cache/parsing?

 

I have always loved the responsiveness of Emacs, but this background semantic parsing is ruining the experience.

Reply via email to