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: Sat, 23 Jul 2022 20:59:35 +0300 Message-ID: <83o7xfhfqw.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> <87v8rnc2wp.fsf@gmail.com> <8335erizqh.fsf@gnu.org> <83r12bhgfo.fsf@gnu.org> <83pmhvhg7g.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32142"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, monnier@iro.umontreal.ca, visuweshm@gmail.com To: gerd.moellmann@gmail.com, 56682@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 20:00: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 1oFJQX-0008FG-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 20:00:33 +0200 Original-Received: from localhost ([::1]:52916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFJQW-00031h-Ip for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 14:00:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJQ2-0002zW-KN for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 14:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFJQ2-00063V-9f for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFJQ2-00066r-0S for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 14:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 18:00: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.165859918823439 (code B ref 56682); Sat, 23 Jul 2022 18:00:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 17:59:48 +0000 Original-Received: from localhost ([127.0.0.1]:46257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJPo-00065y-51 for submit@debbugs.gnu.org; Sat, 23 Jul 2022 13:59:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJPm-00065i-K5 for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 13:59:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJPh-00061q-9l; Sat, 23 Jul 2022 13:59:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6gJWeSQjwRJCSCq915kqQ6dM8B7NmyZ3i6DCw3Scskk=; b=MUE9vESrBYkk 0R2K4/qfhmqZnyyJmh99ewzXQkdCH+sIudBnTQWmdzVN7UM/jOsR+HCL132+K25x1JtdS0AAMmOMC i8fvjdwJORzWdOEb/Aqo05j6P7JklTn6Dw5mTC8AWhBnUSMYKZ4oAMKwTPigPKauzjU9u545ktl17 zDDD5i7ZS2RY0BCu9tSjUMehui7oDLTeJyB+ErjfTMArXQ4f2TleR592YOhqAcvWp3WeSICQ4aysC DvMfRAFCri3B4wsBtqiL4FCSvZ0Uhr46CTDpGUjS1VxrTP6ZUI3xo0tmyOCFZp2cCfcmaYeJcN/Ym mmEuHeiE9TJCv+S/5YQ9xA==; Original-Received: from [87.69.77.57] (port=2952 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 1oFJPg-0000DH-IO; Sat, 23 Jul 2022 13:59:41 -0400 In-Reply-To: <83pmhvhg7g.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Jul 2022 20:49:39 +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:237784 Archived-At: > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, > visuweshm@gmail.com > Date: Sat, 23 Jul 2022 20:49:39 +0300 > From: Eli Zaretskii > > > > Font-lock Scroll-bar Composition Output > > > ------------------------------------------------------------ > > > on on on GCs: 16 Elapsed time: 5.496764 seconds > > > on off on GCs: 1 Elapsed time: 5.362916 seconds > > > on off off GCs: 1 Elapsed time: 3.947306 seconds > > > > > > That's with > > > 280b8c96cc origin/feature/long-lines-and-font-locking Improve display of columns on mode-lin > > > > Thanks. So the scroll-bar effect is largely gone, and font-lock is > > now just 25% slower than no-font-lock. Which I think is reasonable, > > given that there's a face change every 10 to 20 characters? > > Oops, I was confused: font-lock OFF is not in the table, so with it > we're still 4 to 5 times slower than without it. It's > auto-composition mode that costs us 25% slowdown. Which seems to be similar to slowdown due to font-lock in other cases? For example, scrolling with the same benchmark through xdisp.c takes 190 sec for the first time and 40 for the second time (when everything is already fontified); whereas without font-lock it takes 20. So it sounds like font-lock generally slows down redisplay by such small factors?