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: Tue, 16 Aug 2022 00:15:43 +0300 Message-ID: References: <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> <12348081660379417@sas2-a098efd00d24.qloud-c.yandex.net> <66bbbb95983414e79637@heytings.org> <83wnb9hadb.fsf@gnu.org> <395454dd-7238-c5d0-e924-2f65a186baa7@yandex.ru> <83r11hh4pm.fsf@gnu.org> <3a1232a17b09ce88af40@heytings.org> <4ebdfdc3-4aeb-7ebb-b5ba-43b5c9b0aaa1@yandex.ru> <3a1232a17b80387503f4@heytings.org> <881ac6c7-116c-49d0-8f19-4a3778260914@yandex.ru> <3a1232a17b37db7a2498@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="31258"; 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 , monnier@iro.umontreal.ca To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 23:16:22 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 1oNhRc-0007xe-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 23:16:20 +0200 Original-Received: from localhost ([::1]:46880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNhRb-0005Wz-ES for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 17:16:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNhRK-0005WL-Nj for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 17:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNhRK-00011s-FM for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 17:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNhRK-0007WO-8j for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 17:16: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: Mon, 15 Aug 2022 21:16: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.166059815628889 (code B ref 56682); Mon, 15 Aug 2022 21:16:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 15 Aug 2022 21:15:56 +0000 Original-Received: from localhost ([127.0.0.1]:44229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNhRD-0007Vt-TE for submit@debbugs.gnu.org; Mon, 15 Aug 2022 17:15:56 -0400 Original-Received: from mail-wm1-f49.google.com ([209.85.128.49]:41698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNhRA-0007VV-3v for 56682@debbugs.gnu.org; Mon, 15 Aug 2022 17:15:54 -0400 Original-Received: by mail-wm1-f49.google.com with SMTP id m10-20020a05600c3b0a00b003a603fc3f81so508440wms.0 for <56682@debbugs.gnu.org>; Mon, 15 Aug 2022 14:15:52 -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=6lLe3pl/076yDOBsbhbeCy5nuLTB5GT8gLAbQyDhU64=; b=VSG7pIVtBF93R/FIJrYz+vgwp31vT3zvrcTJKx/b7bI/Dgj4DkTdYEkgV11i/QHy9Y fb/eZhllvTvcmIGBcUOnyuDksJhNCKrrHV1mwL04iGk3MEnQhp68AkaaMY6Lv+3gJ8Gm gVzdprTBXrJWe3Cq8kCXzE3SBD+9bBfZzZxz1ltsC5P1athHPFLmhyrEwIwWmrGPwN1b Lkz9+062TVYeBC52FUEqMKDBN0TRCEdL6vXKfBgTn09xotKBsfzc2UKqXzWA3oGsxBZx LrxTsy2a9LBdzXoP//lqvJAF0fUZY97ld/7UOsH8QvM79v0BZ/lrHmb6o+sN/WE/hu4E UmkQ== 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=6lLe3pl/076yDOBsbhbeCy5nuLTB5GT8gLAbQyDhU64=; b=MHkSo5xMTPIdLAp3YRpC7A2aHFx7FtIEqLW9qeoEgj/J8jhJozDw6bnUEXXuh4RNnw ITIxtsiYdUjA8p1IrrwGrF3l5On98MWLd+BVn0S7FNoKcL1/g6HQKacc/gVpVlCulu5x IylWx9U5xR6o+m5uHSiADBGYwHmMDtpi1978lukN8P8AkJDZvk8tm+DLfhwx5Swdq75s 3Q93e6PVPYPtUq/GcfNba1WPQjbhJU97mdsjPMiSPn5euPT1SFx8gbThDGpxirpUI/bS CAzqCKnWTPzjT+HgBQyFEx6mwF9MTa1VXeiUdvCRlfNjMQT7C7aM1NwmU/DNYsoNbreA hz2w== X-Gm-Message-State: ACgBeo3XN0WGSBv/xLzbKQMTSRnAj1V7RuMC6PwvYBAvjKwGKOLHGhZv qcj/ET0B69IHTit/uEu7Ozo= X-Google-Smtp-Source: AA6agR5nwcN+j42ytD5STtSjqpEXf3IK9ryYE0oqFY55zf9YwKdsMI9y9kY0yOLfoQptnpcDqYdt4Q== X-Received: by 2002:a05:600c:2315:b0:3a5:c2cc:1bee with SMTP id 21-20020a05600c231500b003a5c2cc1beemr10899584wmo.55.1660598146182; Mon, 15 Aug 2022 14:15:46 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id j13-20020a05600c1c0d00b003a5e9337967sm7782353wms.13.2022.08.15.14.15.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Aug 2022 14:15:45 -0700 (PDT) Content-Language: en-US In-Reply-To: <3a1232a17b37db7a2498@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:239842 Archived-At: On 15.08.2022 23:53, Gregory Heytings wrote: >> >> I said those words just as I was working on improving font-lock's >> performance in JSON files. An effort which doesn't make sense if you >> narrow around font-lock anyway. >> >> Also note that until now it has been impossible to improve redisplay >> of big files by working on font-lock (other bottlenecks were much more >> significant). >> > > Wrong.  The (much more common) case of big files _without_ long lines, > in which the same font locking slowdowns already exist, has AFAICS not > been a sufficient incentive to improve font locking. Okay, you're right about that. There have been many more complaints about being unable to edit a file with a 5000+ line comfortably, than about editing 100+ MB files.