From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 eEt1F0HjnGKF7AAAbAwnHQ (envelope-from ) for ; Sun, 05 Jun 2022 19:09:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UBx9FkHjnGIMRgAAG6o9tA (envelope-from ) for ; Sun, 05 Jun 2022 19:09:21 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 1AB403C781 for ; Sun, 5 Jun 2022 19:09:21 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0E4D25F70E; Sun, 5 Jun 2022 17:09:07 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 0A6175E025 for ; Sun, 5 Jun 2022 17:09:04 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 306BB5FC01; Sun, 5 Jun 2022 13:09:02 -0400 (EDT) Received: (nullmailer pid 1595568 invoked by uid 1000); Sun, 05 Jun 2022 17:08:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 3/3] perf-test/emacs: lazily insert message bodies with notmuch-show Date: Sun, 5 Jun 2022 14:08:51 -0300 Message-Id: <20220605170851.1595387-4-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220605170851.1595387-1-david@tethera.net> References: <20220605170851.1595387-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: L4GA46GIGC3H4XNUDFNTUV73PATULM7K X-Message-ID-Hash: L4GA46GIGC3H4XNUDFNTUV73PATULM7K X-MailFrom: bremner@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=1654448961; 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=qvropraRwulmqEUnD25gn20/OFMtBP8+smGlp5HsdEg=; b=jJhU/DVgLSPutQXqWrEVkD9H4yZRgMTMTMY+cksp4uh0YrmG5UXOD9gwqC0i1QKnR6BOP9 ZSlVSHA5fMRIGLowtmnVFRfUXx3f0Y0YK45222tX/U6hQYdfCpk947YAARM4ixeTTlv2nf L1YP6bTdpepV+kRjs21l9QdwyQb5A4VtkhFEgafa30YhXSf1O8qG+YbrcEk3ZSPVrZoaSN PCJqTTw6xE42Zfsf5zuXjOii1BNLOD2RRRaGG9vRK36ZkalsHy7XLKsFOalJst/ijy3Zbe 2U2vgZFTWvPJdhc3viJYfr/2wujF2rE9M/1+lEb0p7wrfItW2IG5iyRaIIIqhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654448961; a=rsa-sha256; cv=none; b=Fi28U7WMXKcaeR+EbalnJNO5B2RDZzXEQkD7LR/vAK2off/kT8wAntlWKBiJK5rBGotFlJ X9algcm1FKg9qV08E4iEY5VEs49IGju7J5szv96jqAxGLn+SDFZxf/Ect2AVm/gEhJDY4J l0j8W+lPl6IGMZE9li51An/xhUZ17hvEXXtk3/BYKnBloOT+p9XokCm54TgWbVGYVJrrHW kJjujpLkjmp+gXtKBmSTzAjdl78rfHuTvM7egvWQvXsferhd65oOlIaTrQjONAuvSSxntj KRV0zq3p48y6I8Razs9IB//5TLhf4dV/3KHznLDDWAYscGS/5XJnLiuc/LcP3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1AB403C781 X-Spam-Score: -1.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: xTJZPbA7RXtK As expected / hoped, this is much faster for large threads than actually inserting the bodies. --- performance-test/T06-emacs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/performance-test/T06-emacs.sh b/performance-test/T06-emacs.sh index ce04ca17..7f6fdfbe 100755 --- a/performance-test/T06-emacs.sh +++ b/performance-test/T06-emacs.sh @@ -21,4 +21,8 @@ time_emacs "tag messages" \ time_emacs "show thread" \ '(notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}")' +time_emacs "lazy show" \ + '(let ((notmuch-show-depth-limit 0)) + (notmuch-show "thread:{id:tip-4f8219875a0dad2cfad9e93a3fafcd9626db98d2@git.kernel.org}"))' + time_done -- 2.35.2