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.devel Subject: Re: Speedup of display of long and truncated lines Date: Tue, 11 Oct 2022 13:38:01 +0300 Message-ID: <8335bufxx2.fsf@gnu.org> References: <83edxkmdy3.fsf@gnu.org> <66bbbb9598b1b1ce66d2@heytings.org> <8335e0m9zp.fsf@gnu.org> <66bbbb95989005dd3e92@heytings.org> <8335dsg22h.fsf@gnu.org> <37dd2827f51f1d25e9ce@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19606"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 11 14:37:10 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oiEVS-0004vH-1b for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 14:37:10 +0200 Original-Received: from localhost ([::1]:49182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiEVQ-0002es-1s for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Oct 2022 08:37:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiCe1-0001b5-FV for emacs-devel@gnu.org; Tue, 11 Oct 2022 06:37:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiCe0-0006nl-IP; Tue, 11 Oct 2022 06:37:52 -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=GiT1oSlaoG+DdoHHSL0Beydy2zb1Y/17MYyOubrmtxo=; b=N6fj8779ScaH BPRnGqly7kHLdkrSjMZfL/80R95rvAdIB2B2Ey4cNgIE7CHjjrE3jXfBEFXhnq3PabS08Ss3Y/Owo HIO1U9+r0Rb7o8ZjyiiWW7sROb/3OzTPTykls5paA2+UvxwY7DlxqXlZ5bMdnJxE0/jiRjDciT8rV ov8HtGS7OxjohvqVP/rKhOaNXdVrojvBZtGpQ+5bDf8h+kdx1nvmIy0xpgfhgb/tOhVn3N/3Mk8R/ mozCSUCJSPmBdkOQoUl1jtGGDJQYLwdWN7XY04kBXCjtVY3hZGzamk4dqLp2f+qBNfE8UVvGUDIee k6VUonShkr7qoUu3A62VbA==; Original-Received: from [87.69.77.57] (port=3826 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 1oiCdz-0004If-P5; Tue, 11 Oct 2022 06:37:52 -0400 In-Reply-To: (message from Dmitry Gutov on Sun, 21 Aug 2022 14:22:15 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297474 Archived-At: > Date: Sun, 21 Aug 2022 14:22:15 +0300 > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > > > sql-mode > > FWIW, my brief testing seems to show sql-mode's font-lock has similar > performance to js-json-mode. Maybe like 1.5x slower in syntax-ppss (due > to syntax-propertize-function being present), but that's it. > > Tested with font-lock without narrowing, of course. I think I'm done with this task now. I installed today two changes in the scrolling commands and in the display code that make C-v/M-v significantly faster when lines are very long and truncated on display. So, barring crashes and other bugs, I think this issue can be closed. But if you find situations where Emacs is unbearably sluggish with long and truncated lines, please report that as bugs, so that they could be fixed.