>can you explain what exactly is the slowness you're trying to
avoid?
Its a combination of things. When you revert a Java file you not only get
the buffer re-font-locked but semantic does its parse and that information
is used for extra font-locking and the whole process is *really* slow.
That's for sure. It especially bites me when I compile and skip to the
next-error, which is usually line 2394 in a 3500 line file. The file gets
fontified and parsed, but to edit it, but have to check out from perforce.
Then not only does the fortification and parsing start all over, but the
buffer-position gets trashed (probably an unrelated bug in perforce.el, but
I never figured it out), and I'm back on line 1 again. Kinda sucks.