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.bugs Subject: bug#56682: locked narrowing Date: Tue, 29 Nov 2022 21:51:46 +0200 Message-ID: <83r0xllest.fsf@gnu.org> References: <83zgg4dw4y.fsf@gnu.org> <83r11gdrr4.fsf@gnu.org> <83edxfds7s.fsf@gnu.org> <83r11fc80o.fsf@gnu.org> <83o7wjc6o2.fsf@gnu.org> <83lernc5gu.fsf@gnu.org> <83k076dd7d.fsf@gnu.org> <83czcyd8jf.fsf@gnu.org> <83a682d66r.fsf@gnu.org> <837d36ceno.fsf@gnu.org> <37dd2827f54f8bbda5e3@heytings.org> <735c1d5b-0d64-a8e1-3aaa-91fc0248abd3@yandex.ru> <97049541-f5b4-ed3b-b8de-7c0bdc86f0f5@yandex.ru> <83tu2hlj31.fsf@gnu.org> <3e99c4c6-2d38-e147-3070-220bf27cd7e4@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 29 20:52:09 2022 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 1p06eF-0004Lo-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Nov 2022 20:52:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p06eC-0001FS-Hr; Tue, 29 Nov 2022 14:52:04 -0500 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 1p06eA-0001Ew-Nw for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:52:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p06eA-0007mr-Ey for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p06eA-00068c-7H for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2022 19:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.166975148023586 (code B ref 56682); Tue, 29 Nov 2022 19:52:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 29 Nov 2022 19:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:55935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p06dU-00068M-GI for submit@debbugs.gnu.org; Tue, 29 Nov 2022 14:51:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p06dT-00068G-Lo for 56682@debbugs.gnu.org; Tue, 29 Nov 2022 14:51:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p06dN-0007YY-Qx; Tue, 29 Nov 2022 14:51:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Qgq4H2QOjVdwKqS2kJoG5B1kOTLW/CwsbyxiQNIRb1U=; b=INNIMPdFhIjU mnGACjDw68QCUmBikVBC5kuBiXr80AI48R6CB+BFPnZ7jwXze2vT8L+NOOz9nUgXgB5vx4AL8LUbf EJRAV86+soczVUla7O8tJwvTt1pZ89xe1+P61j9T+Cy5qTBtIYLPOjxhiK5y6I4ZxxK+jzq1SJTzO SsG2jJjE1rAVfhQ7O5a2xNpPd7X4JCB+/YWEfrbgOzX4Q3YZk8GPShjwQMDUxt1md2x/tQwwdOOA5 yPTygx/ANWEQvyKGDQ09qFrHLplPuvvIK4h7bQg+7oR3uQFt4FHEyKuH7C3aDYaw5KauDwxBkOrZW VOqmWU8TIrUJXO0ZDXEgTg==; Original-Received: from [87.69.77.57] (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 1p06dN-0004n7-AV; Tue, 29 Nov 2022 14:51:13 -0500 In-Reply-To: <3e99c4c6-2d38-e147-3070-220bf27cd7e4@yandex.ru> (message from Dmitry Gutov on Tue, 29 Nov 2022 21:29:59 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249429 Archived-At: > Date: Tue, 29 Nov 2022 21:29:59 +0200 > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca > From: Dmitry Gutov > > >> That's the regression. > > The faster ones use a different major-mode, btw. > > The old (faster) revision uses js-mode, the new one -- the optimized > js-json-mode. I'm sure I could have made a mistake doing that > optimization, but the behavior doesn't indicate that: the delays are > higher near BOB and seem absent near EOB (in master/emacs-29), and they > don't show up in the profiler in separate leaf nodes (the previous ones > -- which I worked on optimizing -- did). I didn't say the new mode was the culprit (you could have assumed I tried the old mode as soon as I discovered this change since July). I just mentioned this for completeness, so we are aware what we are comparing. Anyway, do you see any effect if you set long-line-threshold to nil? Here it makes the redisplay after insertion instantaneous (and this is an unoptimized build, where without setting that variable to nil each insertion in dictionary-pp.json takes about half a second).