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#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Mon, 22 Aug 2022 10:31:05 +0800 Message-ID: <87k071ko0m.fsf@localhost> References: <87bksmx1j1.fsf@localhost> <5900f208367791fbdfe2@heytings.org> <83bksmka08.fsf@gnu.org> <325f95fd2b7c0cc80613@heytings.org> <83y1voflmb.fsf@gnu.org> <325f95fd2bce114fd74d@heytings.org> <87r11g1ieu.fsf@localhost> <325f95fd2b82a19f6838@heytings.org> <37dd2827f539d0de2773@heytings.org> <87bksemg5g.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22358"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57207@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 22 04:31: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 1oPxDZ-0005aR-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Aug 2022 04:31:09 +0200 Original-Received: from localhost ([::1]:48636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPxDY-0001oS-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Aug 2022 22:31:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPxDS-0001oE-Eg for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 22:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPxDR-0001Gi-VZ for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 22:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPxDR-0000TL-Rx for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 22:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Aug 2022 02:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57207 X-GNU-PR-Package: emacs Original-Received: via spool by 57207-submit@debbugs.gnu.org id=B57207.16611354111736 (code B ref 57207); Mon, 22 Aug 2022 02:31:01 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 22 Aug 2022 02:30:11 +0000 Original-Received: from localhost ([127.0.0.1]:37222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPxCd-0000Rv-FG for submit@debbugs.gnu.org; Sun, 21 Aug 2022 22:30:11 -0400 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:45853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPxCb-0000Qa-33 for 57207@debbugs.gnu.org; Sun, 21 Aug 2022 22:30:10 -0400 Original-Received: by mail-pl1-f175.google.com with SMTP id u22so8670763plq.12 for <57207@debbugs.gnu.org>; Sun, 21 Aug 2022 19:30:09 -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=9fWU0bIEUfyQidcZqFxQXtZlWWWr9uEM9bh4tw/cmo0=; b=WaLdhHwZIjb2TnhlYMmfM+ozuOB3FepmM79oGrBwwTf7IVt5K++yEHngL1/WmS8CA9 u56Pn9w5Fq7qp85EDcoTU5BlU43Dsl/zlxPT+JdM7WPcUehoUwVc68EIDP4JgFUj5fei v2Yu57su1ifivUbyzHKP+vJK2kd02Xgu+tgt6WgL8IExYr2bTZw5wil2n1SiTNux5x+Y WXFKSvfB89Iw8NbwWgYjFVzf3HPjmj1HNJHu78c/R2gS1alCZ8eIkeV9GVXVOtEMsfbn /lUCviGRTqF+ocBCVRkZVyzOg8bA0OeyeGyzfg6TxraHgBEDGG5Nycplk7YlhCj+XfSe Su4A== 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=9fWU0bIEUfyQidcZqFxQXtZlWWWr9uEM9bh4tw/cmo0=; b=hePhRDnMrqHJ8dFx2Fi9ysXdVtsWUhPf+SeEBmbI0GQ/a0akN8yx3iYyk5GNTSzO6g WJ3Bijr9tYkaJNanYSsEgGF+UsI5JdK1mj62YIEicdrwXWCigdp351jysbfe4mPpD6Hx FX/vgMdJnvGXy0sZIEB/w2I0f4jrYFFsBaYtnyH6ngyyCXLDLgCXBSgPKR6de4Zwvq8z 9i+LTdRdFZHbQUytzU99LMYL2KWF3TQ6UQF7KbEyb61evMS2c3OFd4pJTCXvQTgczww7 Mv+uF/ogkNS/rITTLH68wojLhPkbltucFH9JBgdwvetdDbuAnVc0SStSBJ1QDVXpMOIs bpow== X-Gm-Message-State: ACgBeo3bKaSY68LMOw/sjjec59gwbgfAphE3uNNaiBYx3/cUh4DC9HpV ERUeTQP+dC9jg8cMiZWh0NY= X-Google-Smtp-Source: AA6agR6lPRyPqkYSCS8ecaBAcFdzpTA2MTv8ACb8AcE0MLb/VoIGQle1G7dcOzmL0Fraq7VUDisdvA== X-Received: by 2002:a17:90b:1e0a:b0:1f5:6554:d502 with SMTP id pg10-20020a17090b1e0a00b001f56554d502mr20139475pjb.101.1661135400153; Sun, 21 Aug 2022 19:30:00 -0700 (PDT) Original-Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id m3-20020a170902d18300b0016f02fceff4sm7067599plb.57.2022.08.21.19.29.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 19:29:59 -0700 (PDT) In-Reply-To: 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:240374 Archived-At: Gregory Heytings writes: >>> Ihor, any chance that you could try the patch (which I attach again to >>> this post) and tell us if if solves your original problem, namely >>> fontification that is slowed down in large Org files? >> >> The patch does not appear to apply onto current master. >> > > It does here (at 8d4789c072), both with "git apply" and "patch -p1". Are > you sure you're really on the master branch, without local modifications > in src/buffer.h and src/xdisp.c? git apply did not work on my side. patch -p1 worked, though complained about converting newlines. The patch appears to solve the problem. I do not see the slowness any more. Initial fontification got a lot faster as well. Thanks! -- 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