From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/45252 Path: main.gmane.org!not-for-mail From: Chris Beggy Newsgroups: gmane.emacs.gnus.general Subject: Re: gpg verification slows down my gnus Date: Fri, 14 Jun 2002 14:30:22 -0400 (EDT) Sender: owner-ding@hpc.uh.edu Message-ID: <20020614.143022.16478454.chrisb@kippona.com> References: <87u1o680b8.fsf@lackawana.kippona.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1024079509 29958 127.0.0.1 (14 Jun 2002 18:31:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 18:31:49 +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 17IvrQ-0007n5-00 for ; Fri, 14 Jun 2002 20:31:49 +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 17IvqU-0002xR-00; Fri, 14 Jun 2002 13:30:50 -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:31:08 -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 NAA29464 for ; Fri, 14 Jun 2002 13:30:55 -0500 (CDT) Original-Received: (qmail 8703 invoked by alias); 14 Jun 2002 18:30:31 -0000 Original-Received: (qmail 8698 invoked from network); 14 Jun 2002 18:30:31 -0000 Original-Received: from lackawana.kippona.com (root@207.8.195.148) by gnus.org with SMTP; 14 Jun 2002 18:30:31 -0000 Original-Received: from localhost (chrisb@localhost [127.0.0.1]) by lackawana.kippona.com (8.12.2/8.12.2/Kippona) with ESMTP id g5EIUNm3009324; Fri, 14 Jun 2002 14:30:27 -0400 Original-To: jas@extundo.com In-Reply-To: X-fingerprint: 6012 F8F8 29B2 67E4 0604 BCD2 F882 88AE 8060 510A X-gpgkeyID: 0x8060510A X-Mailer: Mew version 3.0.55 on Emacs 21.1 / Mule 5.0 (SAKAKI) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:45252 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:45252 On 14 Jun 2002, Simon Josefsson wrote: > On Fri, 14 Jun 2002 news@kippona.com wrote: > > > gpg verification is slowing down my oort gnus: > > Don't enable it then. :-) Thanks for replying. > > 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? > 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. 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? Chris