* gpg verification slows down my gnus
@ 2002-06-14 13:19 news
2002-06-14 13:29 ` Simon Josefsson
2002-06-14 16:24 ` Florian Weimer
0 siblings, 2 replies; 10+ messages in thread
From: news @ 2002-06-14 13:19 UTC (permalink / raw)
gpg verification is slowing down my oort gnus:
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?
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 13:19 gpg verification slows down my gnus news
@ 2002-06-14 13:29 ` Simon Josefsson
2002-06-14 18:30 ` Chris Beggy
2002-06-14 16:24 ` Florian Weimer
1 sibling, 1 reply; 10+ messages in thread
From: Simon Josefsson @ 2002-06-14 13:29 UTC (permalink / raw)
Cc: ding
On Fri, 14 Jun 2002 news@kippona.com wrote:
> gpg verification is slowing down my oort gnus:
Don't enable it then. :-)
> 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.
Asynchronous security verification would be quite useful. Patches,
anyone? :-)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 13:29 ` Simon Josefsson
@ 2002-06-14 18:30 ` Chris Beggy
2002-06-14 18:52 ` Simon Josefsson
0 siblings, 1 reply; 10+ messages in thread
From: Chris Beggy @ 2002-06-14 18:30 UTC (permalink / raw)
Cc: ding
On 14 Jun 2002, Simon Josefsson <jas@extundo.com> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 18:30 ` Chris Beggy
@ 2002-06-14 18:52 ` Simon Josefsson
2002-06-14 19:34 ` news
0 siblings, 1 reply; 10+ messages in thread
From: Simon Josefsson @ 2002-06-14 18:52 UTC (permalink / raw)
Cc: ding
Chris Beggy <chrisb@kippona.com> 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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 13:19 gpg verification slows down my gnus news
2002-06-14 13:29 ` Simon Josefsson
@ 2002-06-14 16:24 ` Florian Weimer
2002-06-14 18:26 ` news
1 sibling, 1 reply; 10+ messages in thread
From: Florian Weimer @ 2002-06-14 16:24 UTC (permalink / raw)
Cc: ding
(Chris Beggy ) news@kippona.com writes:
> What can I do to speed this up?
Which GnuPG version are you using?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 16:24 ` Florian Weimer
@ 2002-06-14 18:26 ` news
2002-06-14 19:25 ` news
0 siblings, 1 reply; 10+ messages in thread
From: news @ 2002-06-14 18:26 UTC (permalink / raw)
Florian Weimer <fw@deneb.enyo.de> writes:
> (Chris Beggy ) news@kippona.com writes:
>
>> What can I do to speed this up?
>
> Which GnuPG version are you using?
gpg 1.0.4
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gpg verification slows down my gnus
2002-06-14 18:26 ` news
@ 2002-06-14 19:25 ` news
0 siblings, 0 replies; 10+ messages in thread
From: news @ 2002-06-14 19:25 UTC (permalink / raw)
(Chris Beggy ) news@kippona.com writes:
> Florian Weimer <fw@deneb.enyo.de> writes:
>
>> Which GnuPG version are you using?
>
> gpg 1.0.4
I took the hint, compiled and installed gnupg 1.0.7 and found
tremendous improvement, for the same signer, same keyring:
Function Name Call Count Elapsed Time Average Time
============================= ========== ============ ============
gpg-verify 1 0.845249 0.845249
gpg-with-temp-files-create 1 0.035467 0.035467
gpg-make-temp-file 2 0.035334 0.017667
gpg-with-temp-files-delete 1 0.000451 0.000451
gpg-build-arg-list 1 5.9e-05 5.9e-05
gpg-exec-path 1 1.5e-05 1.5e-05
Thanks for this suggestion.
Chris
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-06-14 20:11 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-14 13:19 gpg verification slows down my gnus news
2002-06-14 13:29 ` Simon Josefsson
2002-06-14 18:30 ` Chris Beggy
2002-06-14 18:52 ` Simon Josefsson
2002-06-14 19:34 ` news
2002-06-14 19:45 ` Alan Shutko
2002-06-14 20:11 ` news
2002-06-14 16:24 ` Florian Weimer
2002-06-14 18:26 ` news
2002-06-14 19:25 ` news
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).