unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: dkcombs@panix.com (David Combs)
Subject: Re: indent-region for long Java strings very slow
Date: Sat, 18 Nov 2006 20:31:14 +0000 (UTC)	[thread overview]
Message-ID: <ejnqii$jjp$1@reader2.panix.com> (raw)
In-Reply-To: ehrfdf$1lhg$1@agate.berkeley.edu

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

  reply	other threads:[~2006-11-18 20:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-26 14:15 indent-region for long Java strings very slow giethomas
2006-10-26 15:06 ` David Hansen
     [not found] ` <mailman.268.1161875351.27805.help-gnu-emacs@gnu.org>
2006-10-26 17:43   ` Chris McMahan
2006-10-26 19:21     ` David Hansen
2006-10-27  6:56     ` giethomas
2006-10-26 23:12 ` Ilya Zakharevich
2006-11-18 20:31   ` David Combs [this message]
2006-11-19  7:55     ` Ilya Zakharevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ejnqii$jjp$1@reader2.panix.com' \
    --to=dkcombs@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).