From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Tue, 16 Aug 2022 19:30:11 +0800 Message-ID: <875yis2zp8.fsf@localhost> References: <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> <83wnbckp0q.fsf@gnu.org> <8e884ebe-2d2e-d599-15c3-a5cfe5e6b295@yandex.ru> <83o7wnl7ok.fsf@gnu.org> <036414cc-c711-efaf-ed5b-f8ccfaca0604@yandex.ru> <5900f20836753183a6ac@heytings.org> <5c22e38a-5dcd-860e-28a0-b4a5ede6a21b@yandex.ru> <877d3awb92.fsf@localhost> <87pmh2z277.fsf@localhost> <83pmh1iwng.fsf@gnu.org> <87r11gztte.fsf@localhost> <8335dwh1v2.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="24457"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 16 13:30: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 1oNulu-00069W-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:30:10 +0200 Original-Received: from localhost ([::1]:34052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNult-0008KT-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 07:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuln-0008K6-37 for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNulm-0001cm-QQ for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNulm-0004T8-JJ for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Aug 2022 11:30: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.166064936017107 (code B ref 56682); Tue, 16 Aug 2022 11:30:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 11:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:45115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNul6-0004Rr-Ia for submit@debbugs.gnu.org; Tue, 16 Aug 2022 07:29:20 -0400 Original-Received: from mail-pl1-f182.google.com ([209.85.214.182]:37767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNul4-0004Re-7K for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 07:29:19 -0400 Original-Received: by mail-pl1-f182.google.com with SMTP id m2so8944411pls.4 for <56682@debbugs.gnu.org>; Tue, 16 Aug 2022 04:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=FxHWEofr2kTGwtUNZY6T8NbPhRVZsiec8ppHAO0GK5I=; b=PooX0xEp0jyxzObaVIM2/zIk39JkTXspRMazWZnn++aqDzixJ49RAZhutqlco4E1Uc g+o2xzZbDsQnZvuJrjUAYge4S3vnQCe+YghPf/uv2mcNw7NNkPpH1DYGw9iQm0przvLk wrwDoiwLxAJnAPR0w94BkWjCnT+0fewRspA8nVJKwYzpK1hiIJR2BdIRNkuCWdNKqU+w fWGrEEXTLTBL2MAvF8azNUr01tzRFKuRY1eSQdaYvN5adry95hX6Qo7hsKZmXaUw3tRM b7TdHMnPXVwSfWq6X7poQRMKg3kN5SWuPRkpi3aIMjivmH15F4kehjSw5HCsBz+tqqoJ qYWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=FxHWEofr2kTGwtUNZY6T8NbPhRVZsiec8ppHAO0GK5I=; b=muSiUbliXoHfubUFC36tUnmX1u5QVxiYQ+xw3WWbFS5uu8d19wKmSmXqN+0la5hEXm Q9Eq+SQx3V8j7+5BGSEJYAzvAerI3ZrGwXq3wN7gO3mfGnzn9sa8DtZUdkhFjI3MyXZd asJ2qMr2J4Den8aJ9KuM8wWYFVD/DBctx+nNorlx+Fup07f3Ok30WfhGKQXbmJsCl0IQ 1C60eYdGpceR8c35tfsB4czh2RJ87cUaSpcABrXePzQWPzEuGze2En4tRDgpf0xT3z0B b5C+ufJy6SpU2L4eqKxpzitxo32hPdPl9YAue89TfccxU/mv8AfWyQJiglTRa/HVBGxX oSug== X-Gm-Message-State: ACgBeo2QewgTX247pnScXFyHqoZ4eIqP+Ttx5Xa4lkmskaOknADiXGu1 luFZ42YGrB8pa8uHDj4LZA0= X-Google-Smtp-Source: AA6agR5+XQ15m8Q0e/8BjcE5+RHeLgOQ5UqQpcHwSmeJh8nokKdZPY31ozbtvtZY/wWjMs5wxV3lrA== X-Received: by 2002:a17:902:ce11:b0:172:6f2c:a910 with SMTP id k17-20020a170902ce1100b001726f2ca910mr9748247plg.156.1660649352401; Tue, 16 Aug 2022 04:29:12 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id u8-20020a170902714800b0016ecda71e26sm8790229plm.39.2022.08.16.04.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 04:29:11 -0700 (PDT) In-Reply-To: <8335dwh1v2.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" Xref: news.gmane.io gmane.emacs.bugs:239899 Archived-At: Eli Zaretskii writes: >> Also, I just checked some of my org files and found a >15k chars long line. > > 5k shouldn't present a problem, especially when some/most of it is > invisible (as frequently is the case in Org). 15k might be a problem, > indeed, depending on what's there. However, since you never > complained about long lines until this day, I guess it isn't such a > big problem. You are likely right. Note that this branch of the discussion mostly started from me clarifying data about some large Org files. I did not imply that Org files commonly have very long lines. Simply large-sized Org files are more common (5-20Mb). Also, regarding most of the lines being invisible. Unless I miss something, jit-lock actually tries to trigger fontification in the invisible lines when we have something like: -- * headline