all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Bastien <bzg@gnu.org>,
	Christopher Schmidt <christopher@ristopher.com>,
	emacs-devel@gnu.org, Carsten Dominik <dominik@science.uva.nl>
Subject: Re: Compiled regexp?
Date: Thu, 31 Jan 2013 08:55:36 -0700	[thread overview]
Message-ID: <87d2wl9wjr.fsf@fleche.redhat.com> (raw)
In-Reply-To: <jwvsj5hidic.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 31 Jan 2013 10:28:05 -0500")

>>>>> "Stefan" == Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

Stefan> If we ever try to do something to avoid the cost of re-compiling
Stefan> a regexp, I'd expect that we'd provide a way to have explicit access to
Stefan> compiled regexps (with a `regexp-compile' function, the result of which
Stefan> would be accepted by re-search-forward as an alternative to a string).

Back when I did some emacs profiling, regexp compilation didn't show up
in the top 5.  Regexp matching did, though.  I wasn't specifically
looking at regexp performance, though, so I didn't try to isolate the
effects of the compiled-regexp cache.

Tom



      parent reply	other threads:[~2013-01-31 15:55 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
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 [this message]

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=87d2wl9wjr.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=bzg@gnu.org \
    --cc=christopher@ristopher.com \
    --cc=dominik@science.uva.nl \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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.