From: Hrvoje Niksic <hniksic@srce.hr>
Subject: Re: Regular expression performance in emacs, number of cached regexps
Date: 17 May 1998 21:33:15 +0200 [thread overview]
Message-ID: <kigsom88zgk.fsf@jagor.srce.hr> (raw)
In-Reply-To: Kai Grossjohann's message of "17 May 1998 21:20:31 +0200"
Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:
> >>>>> gsstark@mit.edu (Gregory S. Stark) writes:
>
> > [...] If I recall correctly, Emacs cached the five most recently
> > used compiled regular expressions, and I was looping through about
> > six or seven. So Emacs was repeatedly recompiling the same six or
> > seven regular expressions and allocating memory only to be thrown
> > away as garbage shortly later, causing excessive regular
> > expression compilations and garbage collections. [...]
>
> I think I read that the limit has been increased to maybe 20 or so in
> a more recent Emacs (the yet to be released 20.3?).
Yes. So did XEmacs, a few releases ago.
(see definition of REGEXP_CACHE_SIZE in `src/search.c'.)
> But I'm sure RMS knows best :-)
Ha ha ha.
--
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Be nice to your kids.
They'll choose your nursing home.
next prev parent reply other threads:[~1998-05-17 19:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-17 17:49 Gregory S. Stark
1998-05-17 19:20 ` Kai Grossjohann
[not found] ` <vafhg2o1z7k.fsf@ramses..cs.uni-dortmund.de>
1998-05-17 19:33 ` Hrvoje Niksic [this message]
1998-05-18 5:29 ` Richard Stallman
1998-05-18 15:49 ` William M. Perry
1998-05-19 4:45 ` Richard Stallman
1998-05-19 13:52 ` William M. Perry
1998-05-20 1:38 ` Richard Stallman
1998-05-20 6:43 ` Dale Hagglund
1998-05-20 11:47 ` William M. Perry
1998-05-21 7:13 ` Richard Stallman
1998-05-19 7:55 ` Jan Vroonhof
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=kigsom88zgk.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
/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.
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 NNTP newsgroup(s).