From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45253 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: gpg verification slows down my gnus Date: Fri, 14 Jun 2002 20:52:48 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87u1o680b8.fsf@lackawana.kippona.com> <20020614.143022.16478454.chrisb@kippona.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024080989 729 127.0.0.1 (14 Jun 2002 18:56:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 18:56:29 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17IwFJ-0000Be-00 for ; Fri, 14 Jun 2002 20:56:29 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17IwEO-000354-00; Fri, 14 Jun 2002 13:55:32 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 14 Jun 2002 13:55:51 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA29497 for ; Fri, 14 Jun 2002 13:55:39 -0500 (CDT) Original-Received: (qmail 9128 invoked by alias); 14 Jun 2002 18:55:16 -0000 Original-Received: (qmail 9123 invoked from network); 14 Jun 2002 18:55:15 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 14 Jun 2002 18:55:15 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.4/8.12.4) with ESMTP id g5EItClf020931; Fri, 14 Jun 2002 20:55:12 +0200 Original-To: Chris Beggy In-Reply-To: <20020614.143022.16478454.chrisb@kippona.com> (Chris Beggy's message of "Fri, 14 Jun 2002 14:30:22 -0400 (EDT)") Original-Lines: 43 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45253 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45253 Chris Beggy writes: >> > Function Name Call Count Elapsed Time Average Time >> > ============================= ========== ============ ============ >> > gpg-verify 1 16.663583 16.663583 >> > gpg-with-temp-files-create 1 0.03351 0.03351 >> > gpg-make-temp-file 2 0.033345 0.0166725 >> > gpg-with-temp-files-delete 1 0.000525 0.000525 >> > gpg-build-arg-list 1 6.4e-05 6.4e-05 >> > gpg-exec-path 1 1.8e-05 1.8e-05 >> > >> > gpg is byte compiled. What can I do to speed this up? >> >> The time is probably spent in the external "gpg" application, most likely >> trying to retrieve keys from a keyserver. The elisp processing required >> is minimal. > > This profile was for a verification of a key on my keyring. Does > gpg go and fetch before it checks the local keyring? I guess not. Do you have a large keyring? I find gpg becomes slow if the keyring is large. >> Asynchronous security verification would be quite useful. Patches, >> anyone? :-) > > mew seems to do this, somehow checking sigs after the mail is > read in from the spool and while it is being summarized. > Then, I think it caches the result (verified, not verified, key > unreachable) for a time, so that re-reads don't generate new gpg > verification calls. That could work, altough you might end up with stale data. > For comparison, I tried to write out the message from gnus (X O) > and then run gpg on the command line, gpg --verify > message.txt. This wouldn't complete. > > What's the right way to do that? Another way would be to simply display the message immediately, and launch gpg in the background. When gpg finishes, the article buffer is updated with the information.