From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qI3mEFSSr2EzdAAAgWs5BA (envelope-from ) for ; Tue, 07 Dec 2021 17:56:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2N9yDFSSr2HiJAAAbx9fmQ (envelope-from ) for ; Tue, 07 Dec 2021 16:56:52 +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 EE17E103FF for ; Tue, 7 Dec 2021 17:56:51 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 23CAB29292; Tue, 7 Dec 2021 11:56:47 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6B6CD2925D for ; Tue, 7 Dec 2021 11:56:44 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1C4C95FC42; Tue, 7 Dec 2021 11:56:44 -0500 (EST) Received: (nullmailer pid 464023 invoked by uid 1000); Tue, 07 Dec 2021 16:56:43 -0000 From: David Bremner To: Rainer Gemulla , notmuch@notmuchmail.org Subject: Re: notmuch-show-mode: slowdown due to redisplay In-Reply-To: <878rww7qty.fsf@macho> References: <878rww7qty.fsf@macho> Date: Tue, 07 Dec 2021 12:56:43 -0400 Message-ID: <87a6hcwdys.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: K5ACAWHYHCJ7HXDPTMY7SWFRIHHIL7IQ X-Message-ID-Hash: K5ACAWHYHCJ7HXDPTMY7SWFRIHHIL7IQ X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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 X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638896212; 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; bh=E4EVhahY2ZfGgrEQ5OqB0gkjdudnrRCEPWx8EtIQEfA=; b=u/MqY8uT910H7PByVsR1xZ36zs7eohjQq9pIq2jHsLBmnseo+ibpBf8Zl5/FC7XoK6YHIJ FuTc2BP2Aesm+VJp4qwzxUNUEEq6ocRM7a/82OgspjEjSNEXE4zTTJ8qJ3OqCwIn/cS0H7 /gR22cx+1Cql8sahN64AkjfHcnJocXTqnBLqrcrnJsGC/L0Q3THodzm5fl0HcEThVfFT1n TlAzWEomnRNlTX/ma80QHkNF+eg9YTT2W+83VO0LryrByva6deuTGOrGec2dXhDzSKsayj SCwX8mji1z3v+lhIVXtid2/fkXARi7IB8oUUigGUDV/8WYzBQSoaw+OrvsiX9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638896212; a=rsa-sha256; cv=none; b=REwQ1rtR6P2MFrXqXvYOJk/c6Fg3Mpj095C3YgyODjSxcKfo+BUkgCsoaK1b9U+b9OCoFI IwkqpMlqONvJtm8N0g+bqhACR+8bd/tNGrfHm0T+oMtTrKz36F1Si7rdG/oQ69a03Pv4uU acnBayFa7sc8E/Yhzq3grsYjCqa9rZwjGZ0N4/D1AR5TdlFErtxzRQU09qE3vAGP4ditsd eNDp2MSeGKJ3GOJ1pOu+4HvxK/hvRVmhMpu7WKVC69g4rAPh5cbVRaYaG/KaVhtSo6LGtV 7I/kJoi0hbuXWpzJWBYyYLli6vlSLsUIgIeZuhe7ESnMUKfhl4fBFpW6fBpPow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: EE17E103FF X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: nG2inDPeKNWc Rainer Gemulla writes: > 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. d