From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 544db1e: Faster grep pattern for identifiers Date: Wed, 15 Sep 2021 18:56:28 +0300 Message-ID: <83h7elbzo3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15725"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 15 17:57:55 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQXII-0003uO-Gf for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 17:57:54 +0200 Original-Received: from localhost ([::1]:48740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXIH-0000cR-CD for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 11:57:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXGx-0007iT-As for emacs-devel@gnu.org; Wed, 15 Sep 2021 11:56:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40634) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQXGw-0000N8-OU; Wed, 15 Sep 2021 11:56:30 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2144 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQXGw-0000Zy-BG; Wed, 15 Sep 2021 11:56:30 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274747 Archived-At: > branch: master > commit 544db1ee8679eec9edd5cee81a340ee1c4d70158 > Author: Mattias Engdegård > > Faster grep pattern for identifiers > > * lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search): > Use the `-w` flag instead of wrapping the pattern in regexps that make > matching much slower. This speeds up `xref-find-references` by about > 3× on macOS. Doesn't this change the semantics of the "word"? The Grep notion of the word is not necessarily identical to that of Emacs, since the latter depends on the major mode. The comment in the deleted code says that much, AFAICT. Or what am I missing?