From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AEBaCwrBxWE5CAEAgWs5BA (envelope-from ) for ; Fri, 24 Dec 2021 13:46:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wF8jCArBxWFKGAAAauVa8A (envelope-from ) for ; Fri, 24 Dec 2021 13:46:02 +0100 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 D67DE896F for ; Fri, 24 Dec 2021 13:46:01 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 117945F717; Fri, 24 Dec 2021 12:45:57 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 317D55F713 for ; Fri, 24 Dec 2021 12:45:54 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 618585FC42; Fri, 24 Dec 2021 07:45:53 -0500 (EST) Received: (nullmailer pid 2195410 invoked by uid 1000); Fri, 24 Dec 2021 12:45:52 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: speed of notmuch show --verify X-List-To: notmuch Date: Fri, 24 Dec 2021 08:45:52 -0400 Message-ID: <87o856npbz.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4JEOFMSVMZ3F4XEC3LTOMVNMWIU6ZM35 X-Message-ID-Hash: 4JEOFMSVMZ3F4XEC3LTOMVNMWIU6ZM35 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 CC: Daniel Kahn Gillmor 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: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640349961; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=JD8LX081k+3DmWw62kYTJ3O+pr+J3EGtlejy4E7FKdM=; b=Q43ulWzhIKGlRzvfckgX2QbXfAaG2yuigBSs7+bnc3qh85OTMtSGj0lX7nrCJEnKesLfJG 3NxkiYODbMd+Zs1UD+xrYOl008t6rkC+55o6dgDWIMznbzxQZ46Lkpcq2zNutFjC25xRBO sZsLyQTP4m6XuYP6yW3ChkqQ5uHR0drvnxI3NCSqrPQPMXEgaz5dO6264Kmh1Pr5ngsaeK AZcpcli+JRdG8HMCInuMv5E44D4eFsJlBKBu7F5ou0DwSgTsVsFpinP+gOZN/E4KnzCIv7 +a108C6jgM547XPXeXJ04rLXKJ1E9hR1i29zH1iJLGt0V8OXwQYgD6nYIYeuJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640349961; a=rsa-sha256; cv=none; b=CWrbo00ZqQZ4+ca4/LMzyY6SfBXI5HWoUG9/v+gemkc3I9QoXTj/zQp4L1XhYJ8wmdQoYZ rOeAKlfeL8gaOrRsfkYpL7+iHiym/jIXCk2mu8EsxP8H2zexHQIJT7ONUlo3fI5J1yi/Vd +8ZYrupDHg7z9T4kHyYpaHcV0A270gr+eQzyxXojx2iOHNwMYudHdREBHek0yFMoTc7i9s pPbYr4099Ge7R5X9B6SZyBVo9VkwVTAM3ZKCGboOY8kJcCjsI1HhGTfqnCeM84kRtxgyL7 /82Nz0wveGXbjvkIE9ha3yAUmIf+VvoXzL+tFbdEKo5CMtxyeEEdr5jj2rsVeQ== 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.67 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: D67DE896F X-Spam-Score: -2.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 76twrSEfwlOj I was tracking down some performance issues in the display of long threads, and I eventually realized the problem was actually in the notmuch CLI. I'm not sure if this is fixable, but basically the calls to gpg are very slow when running "notmuch show --verify". On a 114 message thread (with 39 signed messages) from the Debian BTS, --verify makes the elapsed time go from .03s to 1.54s. Perf shows most of the "hot" symbols are in gpg or in the kernel called from gpg. I guess a lazy inserting approach in notmuch-emacs might help this as well, since we don't need to verify the signatures of messages we don't read.