From: Bastien <bzg@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Compiled regexp?
Date: Thu, 31 Jan 2013 15:11:44 +0100 [thread overview]
Message-ID: <871ud1h273.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87vcad5ttp@ch.ristopher.com> (Christopher Schmidt's message of "Thu, 31 Jan 2013 14:08:02 +0000 (GMT)")
Christopher Schmidt <christopher@ch.ristopher.com> writes:
> We discussed how cached compiled regexps are looked up, i.e. per object
> or per content. If the former were true, (re-search-forward (concat "^"
> my-partial-pattern) ...) would result in the regular expression being
> compiled each and every time because concat returns a new lisp object.
> That's slow.
Yes, that's what I tried to say, thanks for clarifying it.
--
Bastien
next prev parent reply other threads:[~2013-01-31 14:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 13:40 Compiled regexp? Bastien
2013-01-31 14:08 ` Christopher Schmidt
2013-01-31 14:11 ` Bastien [this message]
2013-01-31 14:26 ` Andreas Schwab
2013-01-31 14:42 ` Dominik, Carsten
2013-01-31 15:28 ` Stefan Monnier
2013-01-31 15:34 ` Dominik, Carsten
2013-01-31 15:55 ` Tom Tromey
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=871ud1h273.fsf@bzg.ath.cx \
--to=bzg@gnu.org \
--cc=emacs-devel@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.