[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 <ehrfdf$1lhg$1@agate.berkeley.edu>,
Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote:
>[A complimentary Cc of this posting was sent to
>giethomas@gmail.com
><giethomas@gmail.com>], who wrote in article
><1161872117.135227.178220@i42g2000cwa.googlegroups.com>:
>> 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...
>
>Puzzled,
>Ilya
FOI: are you perhaps thinking of fixing it?
Thanks
David
- Re: indent-region for long Java strings very slow,
David Combs <=