From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kFj3LiZ80GJ0UAAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 22:27:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sDi2LiZ80GIo0wAAauVa8A (envelope-from ) for ; Thu, 14 Jul 2022 22:27:18 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 1F3CC396D5 for ; Thu, 14 Jul 2022 22:27:18 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5809D5F71C; Thu, 14 Jul 2022 20:27:14 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 1A6705F3B0 for ; Thu, 14 Jul 2022 20:27:11 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 85D285FBD0; Thu, 14 Jul 2022 16:27:09 -0400 (EDT) Received: (nullmailer pid 301064 invoked by uid 1000); Thu, 14 Jul 2022 20:27:06 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: provide various lazy-show options In-Reply-To: <20220628010205.1567784-1-david@tethera.net> References: <20220628010205.1567784-1-david@tethera.net> Date: Thu, 14 Jul 2022 16:27:06 -0400 Message-ID: <875yjzphid.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: VFVUEFMBKZCEFATWCSOCES4DPCKDE3OH X-Message-ID-Hash: VFVUEFMBKZCEFATWCSOCES4DPCKDE3OH 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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657830438; 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=wIpRu9pG0bVW9dn5S3jBlxZQNsk8eVe0f7ijp0TQW1c=; b=GliZaSJMjYPXWDflYAcakgpqmnr7fMVzizHmUXpY8QKD1cVUGfVkQyPmuaAfHD/ZaA5Z7M /8v7qsd6rM86JjVVIdFtdmPV/X2UniHWH+i6SOlrdHP/Qs/BAS77VJ0Bn7tHVJqXkBIz73 /HAfPZdbeBIRnoYaTmdM55Z/INu47E6T7qAheFRDWE3fvTTtIRxsQROXG0hgUiDrPT2lgz OQiCGNiM4TPr3fc4PAgin3kYJWlaQF4qOHljvbU/Rq41BaBIOuBU1ZnLv2J1plIZT3BCtK 5R39LA6YgakFP+qW+BBW/VmFv6hCKKVBO0DatxpQ4uPSUeny4uyMOnm4rSXBQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657830438; a=rsa-sha256; cv=none; b=h6g5lpALJGJx1/lNGvd2yD63KKEUZRz4sKED7qSyA+jnTT/w4iKTkzoqVu0UTPCIYDLIgT IfYR7qbV5jjkORoQ+ntEVQ8J5tmB4nm2DLFHQRr3DPV4aRVdcdVTXBe3xZCVFAm8DTTHM+ 2jLP0vknvH5AxgQVt6BJNv6zAyUL701hUAwG8oQCTV60eUXRU3z4OMQ5K/OLEFJzmMFrIc 1xelqOiZ2TqJRCD2Lcfv65ExvjiES2XVHC7/wJ9uxXTBqb8lsfl9K5EtRW/666Gdjx4zEn 8Mv0YR24rDduyiYRtw+oKvWLxZ2yS0UGWlVnOGAB9by/CRhfJ+u7KGxxgl9X8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.75 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1F3CC396D5 X-Spam-Score: -2.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: wssX8BjyhCmX David Bremner writes: > It is a bit of an unfortunate profusion of options, but it isn't > really clear to me yet if there is one best heuristic for all > use-cases. The overall observation is that for most threads (even up > to several hundred messages), the time to return the query from the > notmuch CLI is much smaller than that to render it in emacs. This > series expands upon some existing ideas of not rendering large text/* > attachments to "lazily" render message bodies for messages satisfying > certain criteria. In one of the introduced test cases this yields > about a 10x speedup. Of course the comparison is not completly fair as > the user probably has to do more work in opening messages to read > them. I have applied a slightly tweaked series to master - one or two indentation fixes in the elisp - fixed the subject on last patch - changed AND to OR in the docs. The wording is still a bit imprecise, doc patches welcome! d