From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 26 Jul 2022 15:08:18 +0200 Message-ID: References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <8a3eaeef010995a5da8d@heytings.org> <837d40ds09.fsf@gnu.org> <83zggwcby5.fsf@gnu.org> <83o7xccagi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16539"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 56682@debbugs.gnu.org, Gregory Heytings , 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 Jul 26 15:09:34 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 1oGKJZ-0004Az-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 15:09:33 +0200 Original-Received: from localhost ([::1]:48066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGKJY-0006JK-Ky for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 09:09:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGKJ4-0006H3-Qy for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 09:09:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGKJ4-0000Cl-Ff for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGKJ4-0006jB-Aa for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 13:09: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.165884090925790 (code B ref 56682); Tue, 26 Jul 2022 13:09:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 26 Jul 2022 13:08:29 +0000 Original-Received: from localhost ([127.0.0.1]:52622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGKIW-0006ht-RA for submit@debbugs.gnu.org; Tue, 26 Jul 2022 09:08:29 -0400 Original-Received: from mail-ed1-f49.google.com ([209.85.208.49]:39753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGKIU-0006hd-S0 for 56682@debbugs.gnu.org; Tue, 26 Jul 2022 09:08:28 -0400 Original-Received: by mail-ed1-f49.google.com with SMTP id z22so17655313edd.6 for <56682@debbugs.gnu.org>; Tue, 26 Jul 2022 06:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version; bh=LEsyAtCxGBe2yvobJV9MZ5WerLN5dlZ/JCf9WIHTU6Q=; b=GUWtgkutpz2UwwGmgnFPmiJI0wCa/2EtA4wqiz4ODsAyYIHXh/jJbEGT+3SLh7QAJM ib/DzifK5IRKuGRUMEhV+p+IXWxfY+4q6eCgq5bWJGtT47dI1SJQ2Odu6qRCwJLS07OM KRu0LoqT22klDPcAA+EsfhVwUT1Q8y9MXguUdUhECDXUt5R3j4ScSBHB9/UeJbLvgmId BoOv6cEzfXwlQZFiu682JjiidYdcJi1UIF2TBMfiT6Yzf/nnyayqdtt22JmkmwJE8psx xEEW1k2Kw2YIcuDjeK6OUDpYcCJbujV+qra7xbQL+r+QHbuNuxWUggDJ82yznKh3xolm yAiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version; bh=LEsyAtCxGBe2yvobJV9MZ5WerLN5dlZ/JCf9WIHTU6Q=; b=gYL0KpzSMJtFi15kJCahxOzG4FY2mBeMIqoNFNIAfUNidpril3ptx24yFbT9nbgcQN HyD6wS4UKejwXK5Asyne/ZPvskl9CrONi28nDAE7M0F+3wYSRSJGQla6vcs9R5LWdcS9 P83YVj6EY412iv2bPtzgLyWb/DqjIc/47jc5EiyNEdO0/eQBp7a5VoMsGWgyIvFk3n3s wNVlxYpWNxKelzc/MY9vs9yjDVZRgQHXdzBMXLmFTUzV8p3TnsLfdIJyBDsMBAItTGrC 0fc7SSXb0BXYFkBwKS9bsCz17N8YZJstZQAUQuNX0AjG/7pA8vtk9eCF0jOQD30EmSaH QMSg== X-Gm-Message-State: AJIora+9eBCQRN2Bv9XoX3Zz25E7FTJNyJgSK4Gyl8H67elfRvveON8n eHBlcVaLH5+rZZ2oD96447U= X-Google-Smtp-Source: AGRyM1uvhtDpav+cDcmE+NvkrNlzFR6JNQG8YnTXZ7ygvPvHie8+B21TknVPphVc/tpHj2sSIFRx4A== X-Received: by 2002:a05:6402:3685:b0:43b:dfd3:9487 with SMTP id ej5-20020a056402368500b0043bdfd39487mr16644599edb.32.1658840899742; Tue, 26 Jul 2022 06:08:19 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36615.dip0.t-ipconnect.de. [217.227.102.21]) by smtp.gmail.com with ESMTPSA id 11-20020a170906310b00b0072b3391193dsm6393057ejx.154.2022.07.26.06.08.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 06:08:19 -0700 (PDT) In-Reply-To: <83o7xccagi.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Jul 2022 15:41:49 +0300") 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:237967 Archived-At: What about the following idea, in general. Sorry if that is in the wrong sub-thread, I'm beginning to loose orientation a bit. While iterating, - remmember where we started, say it's 'start_pos'. - when reaching start_pos + X, without reaching a line end, refuse to do any complex stuff, no faces, invisible text and so on. I could think of numerous variations of that theme. I just loaded long-lines.xml in VSCode, and it seems to do something like that. It says that "tokenization has been disabled" in the long line. The long line doesn't have the highlighting that the shorter ones have, and VSCode also wraps the long line instead of truncating it.