From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/15199 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: Regular expression performance in emacs, number of cached regexps Date: 17 May 1998 21:20:31 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <447.440442121838$1042188491@news.gmane.org> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035154274 20798 80.91.224.250 (20 Oct 2002 22:51:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:51:14 +0000 (UTC) Cc: ding@gnus.org, w3-beta@indiana.edu 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 MAA10360 for ; Sun, 17 May 1998 12:27:10 -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 PAA03607 for ; Sun, 17 May 1998 15:24:48 -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 OAH22097; Sun, 17 May 1998 14:24:46 -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:21:49 -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 OAA22084 for ; Sun, 17 May 1998 14:21:41 -0500 (CDT) Original-Received: (qmail 3327 invoked by uid 504); 17 May 1998 19:20:40 -0000 Original-Received: (qmail 3324 invoked from network); 17 May 1998 19:20:40 -0000 Original-Received: from waldorf.informatik.uni-dortmund.de (129.217.4.42) by claymore.vcinet.com with SMTP; 17 May 1998 19:20:39 -0000 Original-Received: from ramses.informatik.uni-dortmund.de (ramses.informatik.uni-dortmund.de [129.217.20.180]) by waldorf.informatik.uni-dortmund.de with SMTP id VAA11611; Sun, 17 May 1998 21:20:33 +0200 (MES) Original-Received: by ramses.informatik.uni-dortmund.de id VAA03517; Sun, 17 May 1998 21:20:32 +0200 Original-To: gsstark@mit.edu (Gregory S. Stark) In-Reply-To: gsstark@mit.edu's message of "17 May 1998 13:49:54 -0400" Original-Lines: 18 X-Mailer: Gnus v5.6.9/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:15199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:15199 >>>>> 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?). But I'm sure RMS knows best :-) kai -- A large number of young women don't trust men with beards. (BFBS Radio)