From notmuch-bounces@notmuchmail.org  Wed Dec  8 11:15:44 2021
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
X-Greylist: delayed 40708 seconds by postgrey-1.36 at yantan; Wed, 08 Dec 2021 11:15:44 UTC
Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657])
	by yantan.tethera.net (Postfix) with ESMTP id 447955F401
	for <nmbug@yantan.tethera.net>; Wed,  8 Dec 2021 11:15:44 +0000 (UTC)
Received: from nmbug.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id E3142294B2;
	Wed,  8 Dec 2021 06:15:42 -0500 (EST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.21])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 7028B294A4
	for <notmuch@notmuchmail.org>; Wed,  8 Dec 2021 06:15:39 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
	s=badeba3b8450; t=1638962135;
	bh=50MJwvaGT7+Eugwe8MLHV6exobyXtR0oeSQ+BGa97rE=;
	h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date;
	b=X1s45OfeppqhAGQtUYKdEoY+ZDuyxdxiKQRj0Yh/YolwXPEIGlULMcHMhNw02xmce
	 tKlRw018pP91iIpjgupy3NC0Y53r497ihgD0STk4BFsI7T+wuYP7H7Kbf24y2HSvMa
	 E3qooLp0vVccXFw0N6jv1UDKX1ZvvKq5bDZBBa2g=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from localhost ([88.130.159.50]) by mail.gmx.net (mrgmx104
 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9MpY-1mRAf50mDE-015HQJ; Wed, 08
 Dec 2021 12:15:35 +0100
From: Rainer Gemulla <hqn1@gmx.de>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: notmuch-show-mode: slowdown due to redisplay
In-Reply-To: <87a6hcwdys.fsf@tethera.net>
References: <878rww7qty.fsf@macho> <87a6hcwdys.fsf@tethera.net>
Date: Wed, 08 Dec 2021 12:15:31 +0100
Message-ID: <877dcffiuk.fsf@macho>
MIME-Version: 1.0
X-Provags-ID: V03:K1:98Krixf/ZiErt9mNbvBQyzkAvPxtqhdWHaHYYlzLeqej8l8hX4W
 1beh4YmCgWV/xQgCdrz5MydiXNTFY0vvSEOLQlI3XLR718KwBkoW1te2EN79LetS1RLS8lU
 /jQPQik/qSLY9csKvXz8bvbFjKPnWIu8J4fhcZecnAxAmy/62BExOwRzeO1DQfy/JUhyJ1N
 8eAY3gwfgIFD01hRgV+PQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:Hz93CdGZUGY=:2nhDhBNbRTrXo8USK6P6hP
 wJFi/tB3ePvNsqSBQ7RVqUJ5TU7wB5yJPUCIzwkBahXp802LtwImHKtuzNe2JlXGy1ThA9b7U
 pRKkiFCW0+I/ekQypqZKlXbFJp3OXbr/tw5799ZLqEIcyi4pRRu8827k09tKUbhXOfK9j6IWw
 iM6gcjCSjnpFFiHPQR0JgIqv3DKKvoxSv/VqkP/FVywTGlRIXY6nZtbOzcaofe2NLsY8/Uq0r
 n3mUWPHDb23fFbxgujyAlytH45pKVfM5tIiZCxAPkhcFEWZ8qtA1d4GkyIx0oRXuRQJr1M0IY
 /gOD6GTrNp5MQzXf6SZOF5H7uAr04EbC6LTE9W/SGc5p0+O7sqSaQ2ANzySJ/p/JY9cofhiWA
 Stk3pqiVrCb54qrXly5x4Hm9MYfGLJNWw3PqS3QWcrAI2VOmT4WhLdr8PNtpcVlab0iYVSahX
 Jarowyytk+AExGXHkNH8yMr+Twlr6S5IJddd6SQRswxF2KUwzTdpOQltJ5Kf8lIssaSWoAU90
 ccLmxfo9JlfyiB4Qk47NK7XWWA3oHC/1ZpOvyeQnx/wV6Qn04kdxgLdcj+p5VHk1WXkP/UVxv
 hxyavHX68x6mEnp6JkpgTU4z/ShbF3OJMuQCkpfDnQIP57SHCPl4kRTt6Xr2iTx6bZTkDFbuW
 rK65H0gha+Lx26gjGjTmX/kIJi2TAWWHPsBigJAMeB8SDCeCM5I2HmuOSc1gfV3kpo/Tkhzyn
 +aL/+xk+7d1msJJkMgk5TXSi3Fac6yRnl+N/6+9x1nxIvcN6bVF6+c0C4GS+lJatPtYhTWiJz
 9Tj0WvVFVgXlgyTb9+Vs0+FncO4yHD3ev0puKUiVaB/8z+zf+FUvRSp/2fUTcJQRHIoaBselG
 8sVw8BKGygw1r7A7lvwoBdtD3yazmtuAClbFUi1k6swB3uJmqnFFtCKQcBFSDbaWiu2cHZPOj
 WuIkevxp7lITwfvY25SHrzWYmLOZ3IfW+lVjZjoVjnoUDgwUaObs40eg6+2HIN0u/ksHlrctJ
 a1FaMeKZZa3e8GTbEy0M61QeCj35C0nXkhhTRUeLyrVQDVJJohMcLv6ADnHdO6ubhA==
Message-ID-Hash: AI3DXJ47WRICOHSV6O7RIFDM6W2QHXDA
X-Message-ID-Hash: AI3DXJ47WRICOHSV6O7RIFDM6W2QHXDA
X-MailFrom: hqn1@gmx.de
X-Mailman-Rule-Hits: nonmember-moderation
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

>> Navigating certain messages (e.g., with many attachments or images)
>> may become very slow in notmuch-show-mode. I see this rarely, but when
>> it happens, it takes >1s to simply move the point so that the buffer
>> is barely usable. The CPU profiler shows that
>> notmuch-show-command-hook calls redisplay and that's that all where
>> the time goes. Not sure if anything can be done about this.
>
> Hmm. Hard to debug without a sample message, or a more definite
> pattern. Do you notice a threshold in terms of numbers of attachements?
> I can imagine there is some bad behaviour involving large numbers of
> buttons when running redisplay.

I've tracked it down: it happens when multiple large images are attached to the email (and displayed inline) and global-hl-line-mode is turned on. The former slows down redisplay, the latter makes redisplay do something with every cursor movement.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
