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:49:39 +0300 Message-ID: <83pmhvhg7g.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25920"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, visuweshm@gmail.com To: gerd.moellmann@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 19:50:23 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 1oFJGg-0006Tz-Nc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 19:50:22 +0200 Original-Received: from localhost ([::1]:47670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFJGf-00075c-HZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 13:50:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJGO-0006wm-At for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFJGM-0003Th-Ss for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFJGM-0005po-PI for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:50: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 17:50: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.165859859222403 (code B ref 56682); Sat, 23 Jul 2022 17:50:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 17:49:52 +0000 Original-Received: from localhost ([127.0.0.1]:46247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJGB-0005pH-O9 for submit@debbugs.gnu.org; Sat, 23 Jul 2022 13:49:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJG9-0005p3-D9 for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 13:49:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJG4-0003Qv-4W; Sat, 23 Jul 2022 13:49:44 -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=I5uwHAn3bzFxPhr2WJV6u9M28MNztr8IzVdq5WsjdoM=; b=e3gEX/dmrUBb vqe+3+Hfry05yBkst8rP7hinYUCB6TgIwwaZBperxfcOamvYP9OG71kmggiRNZfKp5lGV/bhr2g3Q ZWypfz2Mdtu5TwDWpQrMkG2HM1zLv6wnyqBzdkFJd42KzB17kga+P7JeAGxFWTQvp5JxhGOgHbKnI Xzh0wi7NgR3x95iBq7Npmj4IOp3QEk5vKZM663DMvJ8XVZGSe/a4G5BSPaiiL5CsjXLPkBMtkjsx+ TeaAztyLzhJy8ZHrPL0uEXtH+z4GdkNTGESL0SfRriuo9wHKNuL1nR2JySeucafZ7cSxegM0e1RGo Fpl5T7wJFMiFvtOMNE7Mrg==; Original-Received: from [87.69.77.57] (port=2341 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 1oFJG3-0002mW-EE; Sat, 23 Jul 2022 13:49:43 -0400 In-Reply-To: <83r12bhgfo.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Jul 2022 20:44:43 +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:237782 Archived-At: > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, > visuweshm@gmail.com > Date: Sat, 23 Jul 2022 20:44:43 +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.