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


View this message in rfc822 format

From: Shigeru Fukaya <shigeru.fukaya <at> gmail.com>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 17514 <at> debbugs.gnu.org
Subject: bug#17514: 24.3.91; enhancement: byte-optimize looking-at-p
Date: Sat, 17 May 2014 22:06:23 +0900
I should concentrate on explicit bugs only, maybe.

Thank you.


>> 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 8 days ago.

Previous Next


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