From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.bugs Subject: Re: skip-chars-forward v. re-search-forward Date: 04 Apr 2003 11:52:26 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049454911 30164 80.91.224.249 (4 Apr 2003 11:15:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2003 11:15:11 +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 13:15:08 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 191PA3-0007pj-00 for ; Fri, 04 Apr 2003 13:15:08 +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 191P2P-0001Dd-09 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 04 Apr 2003 06:07:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 191Oti-00079r-00 for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2003 05:58:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 191Ot0-0006sr-00 for bug-gnu-emacs@gnu.org; Fri, 04 Apr 2003 05:57:30 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191Oo7-0005sr-00; Fri, 04 Apr 2003 05:52:27 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 191Oo6-00072X-00; Fri, 04 Apr 2003 11:52:26 +0100 Original-To: rms@gnu.org Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:4722 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4722 Richard Stallman writes: > That is really surprising. Can you figure out what makes > skip-chars-forward so slow? It would be best for a regexp expert to look at it. > We ought to be able to make it faster than re-search-forward without > much effort, so we may as well try. I don't know enough for that to be clear to me, though it's suggested by the separate implementation for the special case and skip-chars-forward being byte-coded. [Why not re-search-forward, which must be more common?] I could believe that the introduction of multibyte changed factors which are relevant, but that's just a guess.