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: skip-chars-forward v. re-search-forward Date: 02 Apr 2003 18:43:21 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049305965 29464 80.91.224.249 (2 Apr 2003 17:52:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2003 17:52:45 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 19:52:42 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 190mPA-0007cb-00 for ; Wed, 02 Apr 2003 19:52: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 190mLt-0004bI-07 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 02 Apr 2003 12:48:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190mJV-0002ZZ-00 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2003 12:46:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190mJO-0002P2-00 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2003 12:46:11 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190mGj-000142-00 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2003 12:43:25 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 190mGg-0001tB-00 for ; Wed, 02 Apr 2003 18:43:22 +0100 Original-To: bug-gnu-emacs@gnu.org Original-Lines: 9 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:4700 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4700 I've tended to use skip-chars-forward instead of re-search-forward since it's byte-coded and I assumed it's more efficient. However, I made a measurement and found that skip-chars-forward was actually slower than re-search-forward. Is there a good reason for maintaining the two implementations? Implementing skip-chars-forward using re-search-forward would have the advantage that character classes would work with it, which they currently don't.