From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SEmmHeeTsGFzewEAgWs5BA (envelope-from ) for ; Wed, 08 Dec 2021 12:15:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4HVtGeeTsGGEJgAAB5/wlQ (envelope-from ) for ; Wed, 08 Dec 2021 11:15:51 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D96C434DA0 for ; Wed, 8 Dec 2021 12:15:50 +0100 (CET) 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 ; 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 To: David Bremner , 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-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." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638962151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aEzgMH3zEBqQEixDak+uwpJXyxcxIjeXo1AZifCAnUY=; b=tDb+/0UuF+OTOkPwug92ZsUqfID9XONBV0lH3PhLc8UgttzjWXhKsDTao1uMsSgKVsmsaW rntETwhWxOY7ScMSaVEY174R4wnx4U0u1mDUvE2NNHdRPqq7j49JLsNLs8AwlzUM/DtJPg SDi52x2upZL9RTvQP2U2wf7ts7xlqCFatsozi3jNFTnmjcG04ZXpep7kvktcVa8qGUWga2 M9PUsBzJzryJyTcPRd9YIz490wptjw6HBBxKUDMgNUNY2DF2hH8jOTS/p5e9juAvTl1TbH 9TnOwD16cedUUGaXV/DtIsponA+MEiZa0Wfg6yoiX0McFjONTNuotR3E5YAJOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638962151; a=rsa-sha256; cv=none; b=olb/5uG4SGsfK1+LeFkHPhSQeycDizIZyBpxt+2lWCAXPmxLkZ50sGWHbK6HKfZTzOQJdt PNHfLxg9ELYNafHxYZ4Idcii+XzdJCosTehBuCctpEz3j9SBMd8Yv/a3LavMkzczar4IIw MQ7ZocTK7uXkESz13bevBfAwnKrYECtsEVSCXLuMANyhM6BjPmKzDV83wQPlzvHKk1m89u kaNWvjETy8QUa80w2Ajz7l1LmyHE3wAXK8Q79VwuAu/YvxKpO/tWpnuLW24C3Q8f11T3vP 3Pm/JeYA6xSuhMxwk49K5nq2b//V07tBANk/ppj3MgRgyLI+k4gtwq/XZC/9Dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.net header.s=badeba3b8450 header.b=X1s45Ofe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.net header.s=badeba3b8450 header.b=X1s45Ofe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.de (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: D96C434DA0 X-Spam-Score: -0.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: lRTn7LortNuN >> 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.