From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#56682: locked narrowing Date: Tue, 29 Nov 2022 21:29:59 +0200 Message-ID: <3e99c4c6-2d38-e147-3070-220bf27cd7e4@yandex.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26412"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 29 20:31:32 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 1p06KK-0006ie-Nb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Nov 2022 20:31:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p06K7-0003v4-Ge; Tue, 29 Nov 2022 14:31:19 -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 1p06Jr-0003t0-2I for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:31:05 -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 1p06Jq-00046r-2K for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p06Jp-0005xF-I2 for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 14:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Nov 2022 19:31:01 +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.166975021622879 (code B ref 56682); Tue, 29 Nov 2022 19:31:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 29 Nov 2022 19:30:16 +0000 Original-Received: from localhost ([127.0.0.1]:55840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p06J2-0005ww-Ov for submit@debbugs.gnu.org; Tue, 29 Nov 2022 14:30:15 -0500 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:41856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p06Iy-0005vj-CF for 56682@debbugs.gnu.org; Tue, 29 Nov 2022 14:30:11 -0500 Original-Received: by mail-wm1-f50.google.com with SMTP id o7-20020a05600c510700b003cffc0b3374so11619996wms.0 for <56682@debbugs.gnu.org>; Tue, 29 Nov 2022 11:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=9vK2IEgCy35m4OApKxnHNp8KdtHr+LuBvvOWrmLMG9I=; b=VbpoFwItlnx2Q7Ecw8e1hLIG0aXI1azZcgv0ZB6jW46kkRZcNzfVAgOpSUAXjYAPzS A+hfwkmyAI5x4ATL+uu2yEIm7JdOeBLQDJ/WMjK2B3NtoKvlmx6HAz9uWv0R/Lul0ZWI FrlZaZ3+S66ud92LQtz8y5WXt20X2n0e+CT+/7QeksA/35XrrP3a5DvwtZKFrhhWZ+6u unT/9wpxfL/l/gzh+5fdQH3ISqyRI/pmS1+mItcCIcM2kc2ASYUr7S8+H0FTZmldBDsX hg+S4+EAV9gxc9/Y5IClma6Pv4DpgFnuWhe/2EyBBcoRXl/Kb9gkift3sA01U9SJT7ca m++g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9vK2IEgCy35m4OApKxnHNp8KdtHr+LuBvvOWrmLMG9I=; b=ysR+7HatBBcxZIa1n5kAdfpMDaQLVqQY3/9VtzmyDQehXirIm70V3UkJUDUcjABy5J ryA16BtdfR0MWeDmCFXW7JiLt3sQ1lncq8PV1B4E+QO38VzN0hxvvmUA/1TxOXlxTqIP KbmfIvw9w3VDqgWBtx3B+NL/yXdOlL3f4NquofE6CP+D1QTWpPbr2sa7nrNesTceDItE NX3PBVOIvbm735QHKptsKBmG3mi+cuDw1qu7za4vQ5mWgEQfBNTMkypXsaU/67KoXuk/ DeS3nyN9yELq3ajWSDnMBjz0KhRUxjYznJ+gz2Dnzksu7vWau4dcMRaCxIisOa2GspuF tcNQ== X-Gm-Message-State: ANoB5plT4Ij5r0Bqg5rVj+EQFpnPNKpHqZ0p3yooD+od0wnYrijsCGjk EhiY9QwbUoO1rqOPsGrhmjg= X-Google-Smtp-Source: AA0mqf6/qEyegTB/ogO6Um8omPozIowlsQKRvlJrcTj9nh5hA5bhlOYh68Jd2BZ05YFlJYSOh94Www== X-Received: by 2002:a05:600c:4e50:b0:3d0:bda:f2c with SMTP id e16-20020a05600c4e5000b003d00bda0f2cmr29775706wmq.117.1669750202359; Tue, 29 Nov 2022 11:30:02 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k2-20020adfe3c2000000b00241bc209ae0sm14392311wrm.32.2022.11.29.11.30.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 11:30:01 -0800 (PST) Content-Language: en-US In-Reply-To: <83tu2hlj31.fsf@gnu.org> 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:249426 Archived-At: On 29/11/2022 20:19, Eli Zaretskii wrote: >> Date: Tue, 29 Nov 2022 19:56:30 +0200 >> Cc:56682@debbugs.gnu.org, Eli Zaretskii, >> Stefan Monnier >> From: Dmitry Gutov >> >> Look at the timings for dictionary-pp.json. After C-s eman: >> >> master: ~100 ms >> ff57f30bee, or c59b8dfefa, or Emacs 28: ~20 ms >> >> 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). You can also copy the definition of js-json-mode to a file and evaluate it in the July Emacs, and use it with that file. Or enable js-mode instead in the emacs-29 Emacs. The measurements do not change here.