From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: c-find-decl-spots Date: Fri, 09 Jun 2023 16:34:07 +0800 Message-ID: <87pm65hw5c.fsf@yahoo.com> References: <87pm65hw5c.fsf.ref@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35826"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 09 10:35:29 2023 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 1q7Xai-0009Ac-9U for ged-emacs-devel@m.gmane-mx.org; Fri, 09 Jun 2023 10:35:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7XZi-0006s4-J7; Fri, 09 Jun 2023 04:34:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7XZg-0006rW-AR for emacs-devel@gnu.org; Fri, 09 Jun 2023 04:34:24 -0400 Original-Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7XZc-0001gF-Fs for emacs-devel@gnu.org; Fri, 09 Jun 2023 04:34:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686299657; bh=wj9shDAD6w6KeWBV/xjp13HHYnCrr88TBdf/mOA9oKs=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=aSxRlLBOVg5HVIysnIHZ7dRYQl2yawtW8mXTvCKHPnv0AT4fA0FqTjcNxj8W2yAT+85KilR2lmgTz8nkfOxzAyXCHc+UbDhlRDLluzMCFCY9krHvLwPxS645v5zYePO1UP+cUJv7cDsWTpRgt1F5pkYN1ePDaGlvLnMkGKzd2FdoN9fjdzVFNzx6ZNilI0VCAH6y915cHBN+TjIK/g6PBDIOhIXPvYDLqRr1PXvp87CHp8ulaSG14Z/gY8mqoSqMuQHCuqYfiv/dBE1HRuECRMjulPUV/EPbTCp3yvsyKvqGHWi0Q8YbR6BhJElY+zKaoUZg8P/iLxb5ywJEv6M6UA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1686299657; bh=XLZBDNeIVVwHCXo4M5d5N2qXEEsKjOIP9CFaiEv49x4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Y4WWTh0B6IhRkBYDM+v732i68b5P8y1HCKA/oyk7QNP1O48dcpBEv2/LSOHplaopJprl1Fd2RsEOpJXJ9Lficc6zMZnkze2iBfwa+8/Ws2c0RUTa/ifXp8ddrAtdX5yd+sdVS+M/wWL7USV2Xrw6MoD7P9NbNp+lVGijFKO3gOTpYTGmfSAyITjW7uoBEriTMp1p7OHhBqVKjqtuzlCWJpSyeNjguWg8AfpUzGXtIQUnRmrLpaBrik7oAwLUvZjm/tCaWXy4BLqzbRZmfke7i4DUb1h9rqAhf+8b39oV/ZBs5p9iGKAf475WLgbjMWXuIvovdijIFy5dBvYsN/b+lQ== X-YMail-OSG: d7de3CoVM1mU3lBEbU3VgKP6Wu_BRU0H5Nhl5NPSRbSVYz.ci4AeRm56Yg76wj7 3oaNZImgMC5Oec32s2M_F_0JZc0MHKOmauUVkHT7juronwtRbjhec36.R2zlHer6VQ4hXJbuYI2W 6kb7xxzK8u4qwDI4.3pqtKryxEVQiEdEXmkj.0MR_Hf72fi79OXG.gU3ugYVbUoGYaUgDBzLcSMo D7g3a.lRUJH01bfS7pCy.XG.rQUsc4RcpZQYuz8Lpp34T9XfU4lqOzr_shIs.aywdvvCWLmti6.i B6WSASst0nmm5lfaAnhYlndtT74gn5KME.wOsEd8esm1aw6CnrCUQXy6NGZSpg.IVqo6uXna4nOG 3uLXkjDacfdW.WQy3lHj.moyyCeqBlNXE.qstzmto3vjZBT5jp.2HnfajmoQgLbW83yjVU0EEHy5 Kzvm6SbE_KyIOdf7m3SphNpCNpnFCEOFRWnVVBUKpCepw1kQOeDbqZog5waG7.6_s6V1d5cTmSDC rdqwDxr4jF5jHLFUJ._sEb9hS7NrPlumN29Vf2RFef2ejFFdP9u_DTu7QdcHbXujpKPLVZwuZ4hj GpTuoIUdl9xSQbwkAnWjCbRSOiBqYdMzWm7xjARszwF.kNrg1dSK3ypv.iyW2uQPZteA8U..glHR jOazI_csJN8IG9h2xS8IKga0wCM8DwW5WDM3QWWbC6nwOUBS8ji78yu66Vmi69pDUfUny8Wj42wE NG_bglpSAdCPUkLEWsr_OT1Ih4RoiOOv2dAVnMc.xqucMRUjOjbNsK8w.ihZ5aDt7mbkxv4XbEFz r8GlIF6Cg7UfOx3Bgd3LdnVaV.l1Xhfq2v4t8oFIFf X-Sonic-MF: X-Sonic-ID: c3eb663d-d46d-43e1-8673-88c38638d530 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Fri, 9 Jun 2023 08:34:17 +0000 Original-Received: by hermes--production-sg3-748897c457-mrkl5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 362048874c8499ea91ec61e04d3b369a; Fri, 09 Jun 2023 08:34:13 +0000 (UTC) X-Mailer: WebService/1.1.21516 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.187.31; envelope-from=luangruo@yahoo.com; helo=sonic308-56.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306708 Archived-At: I've been encountering some files that cause C Mode to become pathologically slow. The most I can determine is that after each edit, `font-lock-fontify-keywords-region' calls the CC Mode fontification machinery, which then spends a lot of time in `c-find-decl-spots'. My guess is that some cache machinery in that function is not working as intended. I haven't figured out how to debug this any further. Any help would be appreciated. Thanks in advance.