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:44:43 +0300 Message-ID: <83r12bhgfo.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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, visuweshm@gmail.com To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 19:45:52 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 1oFJCJ-0000MC-Ta for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 19:45:52 +0200 Original-Received: from localhost ([::1]:43366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFJCI-00043k-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 13:45:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJBW-0003SZ-DJ for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:45:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFJBW-0002P7-1A for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFJBV-0005dg-Te for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 13:45: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: Sat, 23 Jul 2022 17:45: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.165859829321647 (code B ref 56682); Sat, 23 Jul 2022 17:45:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 17:44:53 +0000 Original-Received: from localhost ([127.0.0.1]:46235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJBM-0005d5-WD for submit@debbugs.gnu.org; Sat, 23 Jul 2022 13:44:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFJBL-0005cq-SD for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 13:44:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFJBG-0002IB-8J; Sat, 23 Jul 2022 13:44:46 -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=kY6433TdbnZfWzW9D48glKJt4r0bJGtUJD2l8vJy/8o=; b=b+fW5GQOrP1gphl+7FJC 9IFDHy1zwB482gjG6yN9/xqMvLNuA7vGIKHqfXMdzteesl9l7Ybg9UMevDX3MfJALWzh07w9JHF7i YFas1pBJk/fC/4DUrw3LZboPd6TWVSHE5tSRgzyfUkoB/7v/Psco8Kiq+vnzf5HCJw012uHuq59iE wMR692Qkge2cJ3CFKJyUdsQJulkXmeR/GkiBYAWZoV1LuesKZPrvb8nivOR+2GWID2VpSr26+0F0m JhVdAuAwn66qhKQNuGM/ORVdOLKHK4fQ0ShQFDOuiRyzp1HBi0BRVerjyQYhXDSNgWc0ea1emUZR3 BBph32tiQfetow==; Original-Received: from [87.69.77.57] (port=2041 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 1oFJBF-00025q-ML; Sat, 23 Jul 2022 13:44:46 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Sat, 23 Jul 2022 19:23:40 +0200) 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:237780 Archived-At: > From: Gerd Möllmann > Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca, > visuweshm@gmail.com > Date: Sat, 23 Jul 2022 19:23:40 +0200 > > Eli Zaretskii writes: > > >> Font-lock Scroll-bar Composition Output > >> ------------------------------------------------------------ > >> on on on GCs: 14 Elapsed time: 7.276626 seconds > >> on off on GCs: 1 Elapsed time: 5.363002 seconds > >> on off off GCs: 1 Elapsed time: 3.967520 seconds > > > > Thanks. How about now, after I installed the last change? > > 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?