From: Andreas Schwab <schwab@suse.de>
To: Kevin Rodgers <kevin.d.rodgers@gmail.com>
Cc: 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 09:21:12 +0200 [thread overview]
Message-ID: <mvmpph7nl3r.fsf@hawking.suse.de> (raw)
In-Reply-To: <lq2geb$cig$1@ger.gmane.org> (Kevin Rodgers's message of "Tue, 15 Jul 2014 00:08:01 -0600")
Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:
> 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.
That's what looking-back does.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
next prev parent reply other threads:[~2014-07-15 7:21 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 ` bug#18013: 24.3.92; looking-back "[^\n]" taking a lot of time in large buffers Kevin Rodgers
2014-07-15 7:21 ` Andreas Schwab [this message]
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
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=mvmpph7nl3r.fsf@hawking.suse.de \
--to=schwab@suse.de \
--cc=18013@debbugs.gnu.org \
--cc=kevin.d.rodgers@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).