I've noticed that the performance of indentation can degrade
significantly in files with large amounts of quoted text that contain
syntactic elements.  For instance, I have a class that outputs a C++
class definition that is stored as a string in my Java class.  I have
noticed very poor performance on that file and files like it.  However,
I haven't experienced poor indentation performance in other files.  I
never tried to figure out what the solution was since it didn't bother
me that much, and the vast majority of files were unaffected.

Another possibly related problem I've experienced is that when editing a
Java file that used a two space indent (which is different than my four
space indent), it would take an unusually long time to indent a comment
(using the c-electric-slash functionality).  I wondered if the different
indentation level wasn't causing it to do more work to figure out what
the proper indentation was.

Dale Wyttenbach wrote:
> 
> Thanks for the suggestion.  Using plain java-mode, emacs-20.3
> takes over 3 minutes to indent a 700 line file while emacs-19.25
> takes about 10 seconds.  Any suggestions?  If not I think
> I'll take the speed, which would be a shame because I like jde a lot.
> 
> Dale
> 
> On Tue, 19 Oct 1999, Phillip Lord wrote:
> >       Start emacs up with the -q option to suppress loading of your
> > .emacs, and load a java source file. It should give you java mode (not
> > jde) out of the box. This will allow you to test the indentation
> > engine speed without having to worry about configuration problems.
> >
> >
> >        Phil
> >

-- 
Brian Stiles

Reply via email to