all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: 24012@debbugs.gnu.org
Subject: bug#24012: 25.0.95; forward-comment backwards takes O(n^2)
Date: Sun, 17 Jul 2016 15:39:17 +0200	[thread overview]
Message-ID: <f2b552fa-c7b1-0b4d-8a29-cba6251dcee2@easy-emacs.de> (raw)
In-Reply-To: <m1h9boh6fh.fsf@gmail.com>



On 17.07.2016 13:04, Leo Liu wrote:
> 1. Use the attached file as an example, open it in emacs in ruby-mode
> 2. Move point to end of buffer and eval (forward-comment (- (point)))
>
> The last step takes about 0.25 seconds on my MacBook 3 GHz Intel Core
> i7. If you double the lines of comments, the time increase by 4 folds.
>
> Any idea why forward-comment backwards is so slow?
>
> Leo
>

With last line

### @end (forward-comment (- (point)))

evaluation last expression doesn't move backward at all, returns nil

GNU Emacs 25.0.95.1 (i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2016-06-12





  parent reply	other threads:[~2016-07-17 13:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17 11:04 bug#24012: 25.0.95; forward-comment backwards takes O(n^2) Leo Liu
2016-07-17 12:12 ` Eli Zaretskii
2016-07-18  0:15   ` Leo Liu
2016-07-18  2:36     ` Eli Zaretskii
2016-07-18  3:05       ` Leo Liu
2016-07-18 14:34         ` Eli Zaretskii
2016-07-17 13:39 ` Andreas Röhler [this message]
2017-12-25 15:24 ` Dmitry Gutov
2019-09-29  5:15 ` Stefan Kangas
2019-11-08  3:59   ` Stefan Kangas

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

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

  git send-email \
    --in-reply-to=f2b552fa-c7b1-0b4d-8a29-cba6251dcee2@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=24012@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.