GNU bug report logs - #17514
24.3.91; enhancement: byte-optimize looking-at-p

Previous Next

Package: emacs;

Reported by: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>

Date: Fri, 16 May 2014 22:09:02 UTC

Severity: wishlist

Tags: patch, wontfix

Found in version 24.3.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 17514 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
Cc: 17514 <at> debbugs.gnu.org
Subject: Re: bug#17514: 24.3.91; enhancement: byte-optimize looking-at-p
Date: Fri, 16 May 2014 18:42:58 -0400
> I think (looking-at-p "a") can be safely optimized to
> (eq (following-char) ?a).
> I found there are 8 such codes in the current trunk, and some more possibly
> changable to looking-at-p from lookin-at.

I don't think it's worth the trouble.  Better just rewrite those
8 occurrences.


        Stefan




This bug report was last modified 11 years and 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.