From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 09:39:40 -0400 Message-ID: References: <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> <3a1232a17bf656136616@heytings.org> <325f95fd2b09b959fddd@heytings.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Dmitry Gutov To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 15:40: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 1oNwni-0003Hm-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 15:40:10 +0200 Original-Received: from localhost ([::1]:54828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNwnh-0003y6-Di for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 09:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNwna-0003xx-Ch for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 09:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNwna-0004sr-3f for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 09:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNwnZ-0003hr-VW for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 09:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 13:40: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.166065719214226 (code B ref 56682); Tue, 16 Aug 2022 13:40:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 13:39:52 +0000 Original-Received: from localhost ([127.0.0.1]:45372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNwnQ-0003hO-14 for submit@debbugs.gnu.org; Tue, 16 Aug 2022 09:39:52 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52637) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNwnN-0003hB-OY for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 09:39:50 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4FB2E100138; Tue, 16 Aug 2022 09:39:44 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B45D01000ED; Tue, 16 Aug 2022 09:39:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1660657182; bh=a+57BQT3PIsl7bcKEsXD7XX9ry39AyVypwO9Ps3r28M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cP2ySQ34Op4waCxnFgBWgF/+dGPDWOvGdqy6Ty0tloHewlnoRZNokgSUhOXf98W3Q lRayuDg0OpdCRRQYC1AllsCkSOmAu5HmOAU90Sx2IJM4hX6LAS6bN0NZ3iF21PPttn ZPF3BbGhTgXewBVX+oBwzwkBf0UO0VvYw4E5dCYsT41TFb6nSnx24p8qs5rmYMKZSs VIWyOs9e4Mpag0MAYfaVVBiitKEI1GVB1jQD/uKziyp6LOdPbd5y9aglZ2dyyVR4Pq WC15yAbIczzj4GI1H40W+2QbOkuZfEv3aZ7g40vPq66VvxmYTJ7d9nB+P1XM5Whye4 QHi3Hwqm8JR8g== Original-Received: from pastel (unknown [45.72.195.111]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4FEED1202E9; Tue, 16 Aug 2022 09:39:42 -0400 (EDT) In-Reply-To: <325f95fd2b09b959fddd@heytings.org> (Gregory Heytings's message of "Tue, 16 Aug 2022 08:12:55 +0000") 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:239937 Archived-At: >>>>> There have been many more complaints about being unable to edit a file >>>>> with a 5000+ line comfortably, than about editing 100+ MB files. >>>> Also because we have things like so-long to handle the large file case. >>> These things are expedients for want of anything better, aren't they? >> Yes, just like the narrowing your use in your long lines patch. > That's... unfair. I disagree. And I don't think it's something you should be ashamed of: it's standard practice to use expedient solutions for want of anything better. It's how we make progress. Those expedient solutions (i.e. those cheap solutions that still cover most cases tolerably) might be "not ideal" but finding them is usually not easy, so pride would be more appropriate. >> They're slightly different in that they don't try to prevent replacing >> those solutions with something better (or worse), tho. > When one looks at things from far enough, everything is indeed "slightly > different" from everything else. For example, the Statue of Liberty is > "slightly different" from Empire State Building. I agree with you that "slightly different" is a euphemism when describing whether an expedient solution can be overridden or not. :-) Stefan