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: Fix the long lines font locking related slowdowns Date: Sat, 13 Aug 2022 22:10:20 +0300 Message-ID: <7747f63b-5cf7-4c40-78ab-98aa7d1a8bc3@yandex.ru> References: <47894c57-dd8b-5778-240a-3fa6540e4d37@yandex.ru> <92da07bd02941d5537e9@heytings.org> <5308e3b5-a160-17d7-77ee-b1d00acfa20d@yandex.ru> <92da07bd02a6cc861e1a@heytings.org> <837d3lzv8n.fsf@gnu.org> <2c8d6755-cfe2-6559-3fde-3fa30ffb411e@yandex.ru> <83mtcgy44k.fsf@gnu.org> <83k07jx5jn.fsf@gnu.org> <866e510d-a060-7daa-d002-97861d056fa7@yandex.ru> <1144021660321893@iva5-64778ce1ba26.qloud-c.yandex.net> <83y1vtmjld.fsf@gnu.org> <8868631660327773@iva2-775ff39c77bc.qloud-c.yandex.net> <83pmh4n0t8.fsf@gnu.org> <83a688md9r.fsf@gnu.org> <66bbbb95982d148fd1bc@heytings.org> <66bbbb95986014f48e4c@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40613"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 21:11:10 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 1oMwXO-000AQk-4h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 21:11:10 +0200 Original-Received: from localhost ([::1]:35756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMwXM-0003oI-QX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 15:11:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMwXG-0003o9-V5 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 15:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45361) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMwXG-0003Lr-95 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 15:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMwXG-0001EA-51 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 19:11: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.16604178324680 (code B ref 56682); Sat, 13 Aug 2022 19:11:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 13 Aug 2022 19:10:32 +0000 Original-Received: from localhost ([127.0.0.1]:35110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMwWm-0001DQ-96 for submit@debbugs.gnu.org; Sat, 13 Aug 2022 15:10:32 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:36556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMwWi-0001D4-Qr for 56682@debbugs.gnu.org; Sat, 13 Aug 2022 15:10:31 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id j7so4531918wrh.3 for <56682@debbugs.gnu.org>; Sat, 13 Aug 2022 12:10:28 -0700 (PDT) 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; bh=225JK9rl2jaZ3M9hLqhODet0Br8PUybfQ2pTEL2qQVM=; b=L9nI9vvlThpnZHaTgXRXCbnScBftdTGwcTfCMJPOTRivMwzkgw5d4SOxJ+aXg8AniD H5mw/ou+SvI8Zf+VtCi6weMHIv8/UUjikwq84CCiTSOdxUkHoErP6QCW+0sFH4JPO/8a wtgyx3idivwF9XWVY8jgdP6xS6c+nprFeaM5w9V2pKNFOhDWqkZoQqzjfbu2n48ubIVr MoSbors4J8nz/mz2hao4hFXEFlXbCbn/M6wa1f5vjZ9Itq1SajoRBLKHf5znqLUFXBLg vMQu7rxLkDuJqCl92P7E/56a5gn04m1qLVaIvc/FEoctOcF36ORNwjP29o70GY0r7JHm 7NAA== 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; bh=225JK9rl2jaZ3M9hLqhODet0Br8PUybfQ2pTEL2qQVM=; b=PScCnNVl0ceD1gHbIUx63et+YP982nz73v4WiDnrx6Log3ZZzXECYBHAwCGaFONQO+ StV0idxCEf2aVxy4V6BbnDGKBU/E4VUQyRNcVkD4E7J+KN/Dk/Qw1KfPAz5R9ElvGffI XXlldQjc7nFjRWQlPzJ68JUKid8VnvTfwFWXNRjzkMRxjqtm28XWtTpYkF0pgSLORfPu uu2SsAU5dIU6GTw0HguKiHAqrWvqbEv8VTZ+bukvtsw1kMPxp4z2TP/vcUZfa0uHbJDF v8yYqyS2a9bcTiYS8MstY/bTPtn1V+/4OyylZAsWc3GxaBlwdp6OAGi235pQOaWYe4zr BwcQ== X-Gm-Message-State: ACgBeo1Q5fv6oJZ1yYBlFItf4VlOEfLVX+AU6LRGrYUkSWYXEC2gFWRy VpJ7SvVh+7LaU7JpeCAC1+I= X-Google-Smtp-Source: AA6agR4iqc/S+aHHLiJ6AaaDcnnz8o53dGJwKooQDNmn0327l21zfejQ0ChNrZQ5zXBaPdyEuIpA+w== X-Received: by 2002:a5d:518d:0:b0:220:688d:4443 with SMTP id k13-20020a5d518d000000b00220688d4443mr4738571wrv.677.1660417823102; Sat, 13 Aug 2022 12:10:23 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j1-20020a056000124100b00220592005edsm2633222wrx.85.2022.08.13.12.10.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Aug 2022 12:10:22 -0700 (PDT) Content-Language: en-US In-Reply-To: <66bbbb95986014f48e4c@heytings.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" Xref: news.gmane.io gmane.emacs.bugs:239586 Archived-At: On 13.08.2022 20:16, Gregory Heytings wrote: > >>> As I just said to Dmitry: the same multi-second delays we saw in >>> smaller JSON files.  And those who have a slower CPU will see these >>> multi-second delays with smaller files. >> >> No exactly the same ones, though, since the previous tests we did were >> done with the older version of JSON support (not the current >> js-json-mode), with somewhat different performance characteristics. >> > > Okay, not "the same ones", but delays of the same order of magnitude > nonetheless.  We had that discussion a month ago, and concluded that > local fixes in every major (and minor) modes were not the way to go. > Having that discussion again does not seem fruitful. Did you have that discussion with other people who have not authored a single major mode? That's ridiculous. > You improved > js-mode and created json-mode, that's fine, but it doesn't change ^ js-json-mode > anything to the way all other major (and minor) modes behave. It showed specific pitfalls we can take care of in other major modes as well.