From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gLeBN4ghsmHtPQEAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 16:32:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8GxWM4ghsmFxJQAAB5/wlQ (envelope-from ) for ; Thu, 09 Dec 2021 15:32:24 +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 8237A36EAC for ; Thu, 9 Dec 2021 16:32:24 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 339C829556; Thu, 9 Dec 2021 10:32:04 -0500 (EST) X-Greylist: delayed 330 seconds by postgrey-1.36 at nmbug; Wed, 08 Dec 2021 10:21:33 EST Received: from smtp.mail.uni-mannheim.de (smtp.mail.uni-mannheim.de [IPv6:2001:7c0:2900:60::869b:6050]) by mail.notmuchmail.org (Postfix) with ESMTPS id 2D0E6294B6 for ; Wed, 8 Dec 2021 10:21:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by smtp.mail.uni-mannheim.de (Postfix) with ESMTP id 31C74100C30; Wed, 8 Dec 2021 16:15:58 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-mannheim.de Received: from smtp.mail.uni-mannheim.de ([134.155.96.80]) by localhost (mail-r83.rz.uni-mannheim.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V58d8dzKfc5s; Wed, 8 Dec 2021 16:15:58 +0100 (CET) Received: from localhost (unknown [88.130.159.50]) by smtp.mail.uni-mannheim.de (Postfix) with ESMTPSA id DFBB4100C29; Wed, 8 Dec 2021 16:15:57 +0100 (CET) From: Rainer Gemulla To: David Bremner , Rainer Gemulla , notmuch@notmuchmail.org Subject: Re: notmuch-show-mode: slowdown due to redisplay In-Reply-To: <87h7bjuqdv.fsf@tethera.net> References: <878rww7qty.fsf@macho> <87a6hcwdys.fsf@tethera.net> <877dcffiuk.fsf@macho> <87h7bjuqdv.fsf@tethera.net> Date: Wed, 08 Dec 2021 16:14:01 +0100 Message-ID: <8735n3f7t2.fsf@macho> MIME-Version: 1.0 X-MailFrom: rgemulla@uni-mannheim.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 Message-ID-Hash: PRMRQFVT5XSFSLYSI3725ISFGMIKQVZM X-Message-ID-Hash: PRMRQFVT5XSFSLYSI3725ISFGMIKQVZM X-Mailman-Approved-At: Thu, 09 Dec 2021 10:32:02 -0500 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: multipart/mixed; boundary="===============1434656244492749489==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639063944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=ItPegJbZvLTx0CR/yWkqXvL1BrPpR2hoMJ8EgaxewJQ=; b=VmJp4T6thV4KOwXg0vbQXsvb+ZcL2wwf4qlcP+DQdysjrOsrfqxt9cy6e7B656mQZAonNI gtlA1Y6lTq0nnCibQk7QNrD8elKp4fQBLvJSb9RBFylpNkJh4X4cQFv839w4/TUtOyIAxS X0GkqYlMDO1Rc2Q4kUWYqhewEzDtODrD0cwyOc08/MG454wbUZT+bGl9bUDKQuT2LDBZvw 6dxMWdTSc6xZKbEYHLtF7u39deHFpT4WbqlEP3e7pLxN/RdvY9cF7Dq9bYSnwi2dd9J6k7 ibe0tVgBeKYnHaC3zgG2iY448JIDy7iXgrN2yvoLz9jbjXqz4nFAzec9JIDPPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639063944; a=rsa-sha256; cv=none; b=MbL7Pzd5dUH/cdmw1n4Hyf1KyBjxvyBTyIO5CSISk9ugub9eAoLtGK6U0sIfgniMF5yCKU +YZqKJitzpNqZKdznIxe+rMRrBldt77VQVofKo6i6NRIVoclwbQF8CUzW/0Usx+/dca4xY vY2Kj6ZeT+GNITsg4GssegHzMTFL/Pq6OyePR7igIsHNbtrGNyHakk5HtZbmv71k7RW76w Z8fRXRcPucIRB0zyM8/LddrqiIW979tQbc4/nlW1HBSf6Hb9ms3GNqFr2u4d5QTi2+a27q 7z1vbxh/UmfemCSSkNI81DG9s0enwjCAxjM3SN6XxoSjN3dcmBF0Buc4dJxGOQ== 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.76 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: 8237A36EAC X-Spam-Score: -2.76 X-Migadu-Scanner: scn1.migadu.com X-TUID: PDNTzSmJHsaV --===============1434656244492749489== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain >> 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. > > I made a test message with 10 copies of a (black and white) 3k x 3k > jpeg image, enabled global-hl-line-mode, but I don't notice any > navigation problems. I wonder if there could be an interaction with some > other package? Or do I need bigger / more images? It's not consistent, apparently. I do have a message (with 2 images and multiple PDF attachments) where it looks like this: 15095 97% - notmuch-show-command-hook 15095 97% - redisplay 16 0% - redisplay_internal (C function) 16 0% - eval 16 0% spaceline-ml-main when global-hl-line-mode is on. Unfortunately, I cannot share this message. Generally, it only happens when one of the attached images is visible in the window. If I stumble across this problem with a message that I can share, I'll post it here. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJNBAEBCgA3FiEEmtshwn9RGtTGGzefdKcOvhKikVsFAmGwy7kZHHJnZW11bGxh QHVuaS1tYW5uaGVpbS5kZQAKCRB0pw6+EqKRW4jZD/0ZsX2P9qHF00pwxeX92w1Z t4ha8qway/b+xgG6ZnoYpY65e3y7/8WuecA+Z2b6JlaNgbDUvGte70YP+6cCNZdb 9MrWikYvW8LHpCUTkT4bHrM5KnH7MplzrG3OGOJff6rfk0R2BQoShoWhKlUg/Qiw 93iNaiEm5Wnqvs6X2YK3kJscTFSr2cWA2PvtZMCOWf+ZUg3Os5wWIpDfHpmcmJtG bushD61BrLZBZfZ/IFlQOq9n8Z19wyG9Le1i+9OwudfZmXaALs8iniVHSwvRi5Oi 2pdmCBrO30FiX1/pxqtszKUCGcBkpPlCkWLo1+3AaIH3tkQmVtNUGEj7hY3274hq gF1hBsxRJ16kDAIHwd0Fg0Ik4D16XkiS7hOaH12EF4UIo+CUqSP95+zPrSdAbLcd L/ZbuxUjIQ7U21zLf8DPIZLRRwmVLTN7dIV4Dc1kHOvcbTYbLNjgK68b3jOQbocc SM36E/MIgkLSz3hgmeYu0tw+MUNHelkuuBE4gdm9hfSoK+0KBMMq4NBXza4+kY4Y ZVL/Wq2GHkiqEXxKV6k/rTdRgncWl3+cZc3L58KU3YnPbf5aRBqaZGdrH0moJWUS if+dwmZVEH4kl82YGScRyHLHs6k7Roh2RtBh9VmoE6Q/Pl84lf7pTfdz0q3HLhyn Onqh/43csqTMh5rwb4LgBA== =xN53 -----END PGP SIGNATURE----- --=-=-=-- --===============1434656244492749489== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1434656244492749489==--