From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: skip-chars-forward v. re-search-forward Date: Thu, 03 Apr 2003 17:53:26 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1049411608 3388 80.91.224.249 (3 Apr 2003 23:13:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2003 23:13:28 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 01:13:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 191Dte-0000sV-00 for ; Fri, 04 Apr 2003 01:13:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191Dtv-00018a-04 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 03 Apr 2003 18:13:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 191DqQ-0006CP-00 for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2003 18:10:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 191DqI-0006An-00 for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2003 18:09:58 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 191Doc-0004ld-00 for bug-gnu-emacs@gnu.org; Thu, 03 Apr 2003 18:08:14 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 191DaI-0007DN-00; Thu, 03 Apr 2003 17:53:26 -0500 Original-To: Andreas Schwab In-reply-to: (message from Andreas Schwab on Wed, 02 Apr 2003 21:49:23 +0200) Original-cc: d.love@dl.ac.uk X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4718 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4718 Both skip-chars-forward and re-search-forward are builtin functions. But re-search-forward uses a cache for recently used regexps to avoid the overhead of compiling it, whereas skip-chars-forward always sets up the search map anew. If skip-chars-forward had a cache, it would probably run faster than regexp searching.