From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24048: 25.0.95; syntax-ppss can be slow Date: Fri, 03 Dec 2021 17:26:50 +0100 Message-ID: <87mtlhwt6d.fsf@gnus.org> References: <87o860f6ov.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39355"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Dmitry Gutov , 24048@debbugs.gnu.org, Stefan Monnier To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 03 17:28:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mtBPy-000A0c-2W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 17:28:14 +0100 Original-Received: from localhost ([::1]:40382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtBPw-00029F-RI for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Dec 2021 11:28:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtBPn-00028p-6K for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2021 11:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtBPm-0006pn-Uw for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2021 11:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtBPm-0004Mw-Rx for bug-gnu-emacs@gnu.org; Fri, 03 Dec 2021 11:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Dec 2021 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24048 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 24048-submit@debbugs.gnu.org id=B24048.163854882916686 (code B ref 24048); Fri, 03 Dec 2021 16:28:02 +0000 Original-Received: (at 24048) by debbugs.gnu.org; 3 Dec 2021 16:27:09 +0000 Original-Received: from localhost ([127.0.0.1]:52084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtBOv-0004L4-Dx for submit@debbugs.gnu.org; Fri, 03 Dec 2021 11:27:09 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtBOn-0004KP-Mv for 24048@debbugs.gnu.org; Fri, 03 Dec 2021 11:27:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kJ+VQnKBF/VAh4eAupcNDP8YNvOR97ToEmJzqWXPh20=; b=NnhDuug51iFLVMWKCfuMtOF6qX QJcVNXE21Jw+xL6qfrnIk/+akyhd7qlj+dUGJJyr9PVCvNFGtfM2x0ZAM9zvMsGWYkLqzF0sKrJPG t9pG2YJTDl2cRyS5hGm21NKGyCQ4tbHVlqiRMNO/detkLGz5NImqydTrAoe+VWFmBa8Q=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtBOe-0004Ru-3c; Fri, 03 Dec 2021 17:26:54 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXWq2TeuoyiYkxB LyT////lU39VAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UMAxAaDharFtIAAAGNSURBVDjLbZMBssMg CESRXEDzL2DgAvlw/7t1URNNG6bTZnzCsoQSRaRSSlZH1BJBI3CeyhbnblRyyWmCsnuPmnLKtKRs AyBllqJE2a+oZSaA7Dc4lwSiuxLiAq2/ohOktdtbAheOod4SGjB1E2kgdw/hwlRwKKL+nxeJv7hb dzDR8wnkCj2XptLmoijkavjcgDIFcOc+FI5EIBbCqUD+UMOTcaUOQJq/UG9jRAQgrlHHdBcAMRQQ 6ULRvUnNwofU3puT1AGYuJ+Fe3caF9wqziHL0hpcABoRTplhaAJtoEAj6jU3dM0b4qRywJI+AVzg coLEDyDBOuUXwCnejxgG+dTg8EEab6x3pZcGRmiMZivjJYdzGQAJlWEPJ5sRvtGOD+sS2sb4wmxj O9puUmrL0o3QcbeFSac2fn12FYTbdn23extqpS+gIjNX3jP6851hPhdeV3A13W/pMsTxfwocLifQ AeB7BTZ+D+0D+imVMeKkv8D2mIy8ZABwjlX+BgR3+xtoC/ZWCvM9a4h/AOuenqUSokA1AAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTEyLTAzVDE2OjI2OjE0KzAwOjAwc9JY1wAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0xMi0wM1QxNjoyNjoxNCswMDowMAKP4GsAAAAASUVORK5CYII= X-Now-Playing: Joni Mitchell's _Clouds_: "Tin Angel" In-Reply-To: (Aaron Jensen's message of "Thu, 2 Dec 2021 21:38:07 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221396 Archived-At: Aaron Jensen writes: > I can still reproduce it with the specified repro: > > Load > https://gist.githubusercontent.com/aaronjensen/d4cd40347a916dd36c8239afecf64a7d/raw/b52440bb51b96193a365a7f4cc1c8733ba98476f/syntax-ppss-slow-repro.ex > Install and enable elixir-mode > > At top of file: > M-: (benchmark 100 '(syntax-ppss)) > > On line 71: > M-: (benchmark 100 '(syntax-ppss)) > > For me it's 0.1ms vs 5ms Thanks for checking. Perhaps Stefan has some insights here; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no