[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indent-region for long Java strings very slow

From: David Combs
Subject: Re: indent-region for long Java strings very slow
Date: Sat, 18 Nov 2006 20:31:14 +0000 (UTC)

In article <address@hidden>,
Ilya Zakharevich  <address@hidden> wrote:
>[A complimentary Cc of this posting was sent to
><address@hidden>], who wrote in article <address@hidden>:
>> When I build a very long Java String with lots of components (... + ...
>> + ... +), spread out over many lines (each terminated by a newline),
>> indent-region gets very, very slow.
>> Anybody any idea why and how to avoid this?
>I suspect that this indicates c-mode being too dumb to use linear-time
>indent algorithm.  20 years ago it was acceptable to have
>quadratic-time indent logic; one could not do better, since
>parse-partial-sexp was not designed well enough.  But I added
>necessary hooks to parse-partial-sexp (more than?) 10 years ago.
>Nowadays all the decent modes should have linear-time logic for
>indent.  It looks like c-mode is not decent enough...

FOI: are you perhaps thinking of fixing it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]