From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: 18013@debbugs.gnu.org
Subject: bug#18013: 24.3.92; looking-back "[^\n]" taking a lot of time in large buffers
Date: Tue, 15 Jul 2014 00:08:01 -0600 [thread overview]
Message-ID: <lq2geb$cig$1@ger.gmane.org> (raw)
In-Reply-To: <878unw9ot9.fsf_-_@geodiff-mac3.ulb.ac.be>
On 7/14/14 5:12 AM, Nicolas Richard wrote:
> As you see it takes more than 8 seconds on my system, most of that time
> is spent looking-back (inserting the file is quick).
>
> (looking-back "[^\n]") is bad code, so I totally deserve this. Still, is
> it possible to make the search smarter when the match is supposed to be
> "anchored" at point ? Otherwise let's just close this bug.
Use "\\=" to match the empty string at point.
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2014-07-15 6:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 9:48 bug#18013: 24.3.92; Infloop in re_search_2 Nicolas Richard
2014-07-14 10:06 ` Andreas Schwab
2014-07-14 10:15 ` Nicolas Richard
2014-07-14 11:12 ` bug#18013: 24.3.92; looking-back "[^\n]" taking a lot of time in large buffers (was: Infloop in re_search_2) Nicolas Richard
2014-07-15 6:08 ` Kevin Rodgers [this message]
2014-07-15 7:21 ` bug#18013: 24.3.92; looking-back "[^\n]" taking a lot of time in large buffers Andreas Schwab
2017-03-25 20:59 ` npostavs
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='lq2geb$cig$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=18013@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.