From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Thu, 28 Jul 2022 09:21:46 +0300 Message-ID: <83lesdahad.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> <83wnc3hkdg.fsf@gnu.org> <49df74e5-e16a-a532-98d1-66c6ff1eb6c6@yandex.ru> <83pmhuft5a.fsf@gnu.org> <05388e8d8836c2e7ef3e@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24326"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 28 08:42:25 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 1oGxE0-0006Bm-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 08:42:24 +0200 Original-Received: from localhost ([::1]:56214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGxDw-0006Xp-6B for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Jul 2022 02:42:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGwuL-00020s-2R for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 02:22:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGwuH-0002J4-Vk for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 02:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGwuH-0001Fw-RQ for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2022 02:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jul 2022 06:22: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.16589893084807 (code B ref 56682); Thu, 28 Jul 2022 06:22:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 28 Jul 2022 06:21:48 +0000 Original-Received: from localhost ([127.0.0.1]:57440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGwu3-0001FS-Um for submit@debbugs.gnu.org; Thu, 28 Jul 2022 02:21:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGwu2-0001FD-6J for 56682@debbugs.gnu.org; Thu, 28 Jul 2022 02:21:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGwtt-0002Ef-Km; Thu, 28 Jul 2022 02:21:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=qMMKWSPXXVAl37zi+iMZVQJ4yME4iplbVgeKMLbldrs=; b=dE2I30E/Ze/GXQjIIl0u 7qStEpLlSs+Phkjwf4oYr8NoiCSt19zcnZQkzMciwHTJynvNeS0WIYoYLYRAkKkV6bdGCqwabzjpP AjbOszy7HWHT67OZCBiyMxyFlnLD91xRBU+bov+OjAKLFrqkz3tLzBWEuXWMyQgPoRklE4UtyGdbO B07yLsP4tJNJ0p2efn9xugj0i4MmBmq9Ap5pFsgw8OIFokJ0E3YKUo9uekLcnmbVtWamrMJD2BpXc LkkevWJXrzm3la6QAdUDKSK7/PBVIJH1BA3IA+cNZavzUOBW1B84EhQZINoVznXUcp2OU9DWfD3b0 jQAjCh8Uk4unmA==; Original-Received: from [87.69.77.57] (port=4565 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGwtt-00089i-0L; Thu, 28 Jul 2022 02:21:37 -0400 In-Reply-To: (message from Dmitry Gutov on Thu, 28 Jul 2022 00:38:09 +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:238072 Archived-At: > Date: Thu, 28 Jul 2022 00:38:09 +0300 > Cc: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org, > Eli Zaretskii , monnier@iro.umontreal.ca > From: Dmitry Gutov > > > Yes, occasional mis-fontification is expected.  It's a compromise > > between "no fontification" and "slow fontification". > > I wonder now if the majority of the slowdown was caused by the > redisplay, whereas font-lock (which only has to run once per screenful) > was actually "fast enough". To establish that, you can run font-lock-fontify-buffer, wait until it finishes, and then try moving around and comparing that with a buffer in which font-lock was turned off. (Do this on master, of course, where the changes we are discussing are not yet installed.) In general, even after a full fontification, you should see at least some slowdown due to the faces. How much slowdown, quantitatively, I don't know, but perhaps Gregory measured that as part of his work.