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 19:19:39 +0300 Message-ID: <83wnc3hkdg.fsf@gnu.org> References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36230"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56682@debbugs.gnu.org, gregory@heytings.org To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 18:20:40 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 1oFHrs-0009Iq-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 18:20:40 +0200 Original-Received: from localhost ([::1]:37394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFHrr-0000BD-Bv for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 12:20:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHrG-00009s-8F for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFHrF-00017c-TE for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFHrF-00013E-Mf for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 12:20: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 16:20: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.16585931894015 (code B ref 56682); Sat, 23 Jul 2022 16:20:01 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 16:19:49 +0000 Original-Received: from localhost ([127.0.0.1]:46141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFHr3-00012h-38 for submit@debbugs.gnu.org; Sat, 23 Jul 2022 12:19:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFHr1-00012T-5z for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 12:19:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFHqv-0000iR-Re; Sat, 23 Jul 2022 12:19: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=2qlI0+95gQY6Afc7uZaB7i0APknzBOmthYHpmhNlGj8=; b=F+yzk8ShheDv crgAYCid1bHJ6TF64e9wewXAF221FvIDBPydF3Js8aEtegiYAqorzhi2sWd6KkbCdwoflSqpYIPFf 1CH7fYuVmGq924r3kDSinVnrz7i+P4EYug0JJqApOyeKd+U0ImAqUN84gYVapr4vVXmEsAsi1kfOu 0BnseflsydFAe/rTNH6ehb1tOUDsfEcLZNg0SVmF8+ZfQginS0ARQcvRrvrqOWEN/2y+VPAZmsYlh LEnz9GWC6p6TEwnmLW1my+IJ9nMPM1yUlwtBOBV3JoLDPB/7CRph0N8l2SPY9I9RtYsHB1FAGQ4yQ pIRFDC9YZ3otkMtYuFQlCQ==; Original-Received: from [87.69.77.57] (port=4602 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 1oFHqu-0003F0-Ks; Sat, 23 Jul 2022 12:19:41 -0400 In-Reply-To: <83y1wjhkkh.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Jul 2022 19:15:26 +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:237768 Archived-At: > Cc: 56682@debbugs.gnu.org, gregory@heytings.org > Date: Sat, 23 Jul 2022 19:15:26 +0300 > From: Eli Zaretskii > > > From: Stefan Monnier > > Cc: gregory@heytings.org, 56682@debbugs.gnu.org > > Date: Sat, 23 Jul 2022 11:46:37 -0400 > > > > >> AFAIK if the buffer has not been modified (including things like > > >> changing `window-start` or `point`), then a redisplay will just not > > >> run jit-lock (and hence font-lock) at all, no matter how thorough. > > > But the fact is without font-lock the response is faster by a large > > > factor. So something, somewhere, still depends on font-lock. > > > > Yes, that's the part that we need to explore. > > Maybe font-lock *is* run somehow? > > Or maybe it's just the mere presence of text properties? (Or overlays?) > > My bet is indeed on the mere presence of text properties, plus the > fact that we need to merge faces. But I could well be wrong. Btw, I think the best tool for determining this is run-time profiling, such as with perf on GNU/Linux.