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:33:01 +0800 Message-ID: <8735dw2zki.fsf@localhost> References: <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> <87mtc6yzfv.fsf@localhost> <3a1232a17bf48a4a693e@heytings.org> <87lerp4tk1.fsf@localhost> <325f95fd2bdd2289114b@heytings.org> <87edxg31lm.fsf@localhost> <325f95fd2bcc4d81c3a7@heytings.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="1505"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, Eli Zaretskii , Stefan Monnier , 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 13:33:29 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 1oNup6-00008V-M8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 13:33:28 +0200 Original-Received: from localhost ([::1]:36414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNup5-0001gJ-94 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Aug 2022 07:33:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNuog-0001f6-Vq for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNuog-0002CF-KN for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNuog-0006hT-Ek for bug-gnu-emacs@gnu.org; Tue, 16 Aug 2022 07:33: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:33: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.166064952925698 (code B ref 56682); Tue, 16 Aug 2022 11:33:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 16 Aug 2022 11:32:09 +0000 Original-Received: from localhost ([127.0.0.1]:45123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNunp-0006gP-Hd for submit@debbugs.gnu.org; Tue, 16 Aug 2022 07:32:09 -0400 Original-Received: from mail-pl1-f172.google.com ([209.85.214.172]:37520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNunn-0006g9-O6 for 56682@debbugs.gnu.org; Tue, 16 Aug 2022 07:32:09 -0400 Original-Received: by mail-pl1-f172.google.com with SMTP id m2so8950580pls.4 for <56682@debbugs.gnu.org>; Tue, 16 Aug 2022 04:32:07 -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=G4pZVfheipctgZ3uhMJG5CQpfRP+8dMgpGvy2FinLiU=; b=gSaKPiJ7++3wZtYmaaHYoqt9qcA7lCUXX7KXuYZDXM/UfIkcOmjVPXrfi83oe1WNGn Wn/d2ccgNRxMGFuJ5ZIS/yiBaeD7a9a9mxtJo3DGFh4yrQX7/AcF7kcjdc48wtwtegrl tn0RAvz3/dm07l4phtHmRBPtGjYrRIIMvthLpzTxjJF+urNLcVLZgaZkPTXTQCvoQhn9 RBtOfPMHeRnEipBKa620DLA4HJ7zH2DI+YhmFwr7umrvOkTLhMUZ1sHCLJjvKm6T/Vv+ YGnW/5CNhlBp6eu58ZSoVxM6xtS/GZbQkLr/k+YuirXkcIUq2vP7/bTb3gyw5WLthov5 VHfA== 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=G4pZVfheipctgZ3uhMJG5CQpfRP+8dMgpGvy2FinLiU=; b=muZ4iGooDu+ad692psB+1I5ikahq3fYdk/dV2Byi2QoL5fDsOU6b2oodx7bQwe6k7T 3LsYj4jGhExYYa7O7UHbIN493iDjWDC4J1BhawWycOfoxURxyKnQYYGhMAIf25c6EahU GrE/HbC98JHxDYgkJcw+PlEzJVci+x/lanQHiS3QrZON+KcsORnXYIndNIUbm69dGBwW sKqBc1rzU6dcjmfOM/btGnRdWMtZnTL2i0awoyRmGM4YyJpoIIBGJoxXqVgy0r7Ix8i4 kqul3SscBYeZwRSDWHINaEhWGGv2MMpTkBAm+Xm7NtQRsz5u9HIF6Na8ua6Pu+jt/fw2 ukiQ== X-Gm-Message-State: ACgBeo2k6EY2SDPu3yb+rhX6eTRi2FyOkQuuTujf/nSZhlM6l+Ufp7jB aZL0XKvHps9B1BRqnjBMHfY= X-Google-Smtp-Source: AA6agR5lfzDAl67CR28lRkWTTyjqG9Cw7eitXgcXUvV1Mzv5rk/ftVzyNceKoJCfs1oSuVGYzjGQHw== X-Received: by 2002:a17:90b:390a:b0:1f5:db3:2817 with SMTP id ob10-20020a17090b390a00b001f50db32817mr32008429pjb.64.1660649522173; Tue, 16 Aug 2022 04:32:02 -0700 (PDT) Original-Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id bc4-20020a170902930400b0016d3ee4533csm8820133plb.18.2022.08.16.04.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 04:32:01 -0700 (PDT) In-Reply-To: <325f95fd2bcc4d81c3a7@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:239901 Archived-At: Gregory Heytings writes: >>>> Cache existence is not guaranteed. >>> >>> Can that cache not be created unconditionally when the Org file is >>> opened? >> >> Without cache, the parser will have to process everything on every >> request to determine object at point. >> > > I'm not sure I understand what you mean? If the cache is created when the > Org file is opened and updated when necessary, its existence becomes > guaranteed, no? Cache (or parts of cache) may be invalidated when buffer is edited. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92