all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: 23569@debbugs.gnu.org
Subject: bug#23569: thing-at-point, source of slowness
Date: Thu, 08 Jul 2021 02:49:45 +0200	[thread overview]
Message-ID: <877di11vfa.fsf@gnus.org> (raw)
In-Reply-To: <573C20ED.4050405@easy-emacs.de> ("Andreas Röhler"'s message of "Wed, 18 May 2016 09:59:41 +0200")

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> in thingatpt.el:
>
> ;; The function bounds-of-thing-at-point finds the beginning and end
> ;; positions by moving first forward to the end of the "thing", and then
> ;; backwards to the beginning.
>
> ;;;;;;;
>
> Also bounds-of-thing-at-point jumps to-and-fro, doing some sanity check every
> time.
>
> Suggest to jump first at the beginning, as backward move might be slow. 
>
> Avoid to-and-fro, deliver tests instead, so first try will be reliable or
> return nil.

(I'm going through old bug reports that unfortunately got little response at
the time.)

I'm not sure I understand the issue, even with the response you gave to
Eli at the time.

Do you have a test case that demonstrates this slowness, and an example
of how you'd change the code?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-07-08  0:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18  7:59 bug#23569: thing-at-point, source of slowness Andreas Röhler
2016-05-18 17:52 ` Eli Zaretskii
2016-05-23  6:42   ` Andreas Röhler
2021-07-08  0:49 ` Lars Ingebrigtsen [this message]
2021-07-08  5:41   ` Andreas Röhler
2021-07-08 12:40     ` Lars Ingebrigtsen

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=877di11vfa.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=23569@debbugs.gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    /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.