From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/15200 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.gnus.general Subject: Re: Regular expression performance in emacs, number of cached regexps Date: 17 May 1998 21:33:15 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035154275 20799 80.91.224.250 (20 Oct 2002 22:51:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:51:15 +0000 (UTC) Return-Path: Original-Received: from gwyn.tux.org (gwyn.tux.org [207.96.122.8]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id MAA10487 for ; Sun, 17 May 1998 12:39:41 -0700 Original-Received: from sina.hpc.uh.edu (root@Sina.HPC.UH.EDU [129.7.3.5]) by gwyn.tux.org (8.8.8/8.8.8) with ESMTP id PAA04054 for ; Sun, 17 May 1998 15:37:18 -0400 Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id OAH22424; Sun, 17 May 1998 14:37:19 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 17 May 1998 14:34:29 -0500 (CDT) Original-Received: from claymore.vcinet.com ([208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id OAA22411 for ; Sun, 17 May 1998 14:34:19 -0500 (CDT) Original-Received: (qmail 3385 invoked by uid 504); 17 May 1998 19:33:19 -0000 Original-Received: (qmail 3382 invoked from network); 17 May 1998 19:33:18 -0000 Original-Received: from jagor.srce.hr (hniksic@161.53.2.130) by claymore.vcinet.com with SMTP; 17 May 1998 19:33:17 -0000 Original-Received: (from hniksic@localhost) by jagor.srce.hr (8.8.8/8.8.6) id VAA01817; Sun, 17 May 1998 21:33:15 +0200 (MET DST) Original-To: ding@gnus.org X-Attribution: Hrvoje X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/xDi&N7XG KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&Ff%x_>1`T(+M2Gg/fgndU%k*ft [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J In-Reply-To: Kai Grossjohann's message of "17 May 1998 21:20:31 +0200" Original-Lines: 27 X-Mailer: Gnus v5.6.7/XEmacs 21.0(beta40) - "Saanen" Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:15200 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:15200 Kai Grossjohann 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 | Student at FER Zagreb, Croatia --------------------------------+-------------------------------- Be nice to your kids. They'll choose your nursing home.