GNU bug report logs - #13795
24.3.50; epa-insert-keys improvements

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: rms@HIDDEN; dated Sat, 23 Feb 2013 19:00:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 13795 <at> debbugs.gnu.org:


Received: (at 13795) by debbugs.gnu.org; 8 Dec 2020 05:35:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 08 00:35:52 2020
Received: from localhost ([127.0.0.1]:56307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmVfD-0008HA-Ox
	for submit <at> debbugs.gnu.org; Tue, 08 Dec 2020 00:35:52 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38290)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1kmVfC-0008Gy-2x
 for 13795 <at> debbugs.gnu.org; Tue, 08 Dec 2020 00:35:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:44141)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1kmVf6-0004XA-T2; Tue, 08 Dec 2020 00:35:44 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1kmVf5-0000jB-4O; Tue, 08 Dec 2020 00:35:43 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87y2i9hcrl.fsf@HIDDEN> (message from Lars Ingebrigtsen on Mon, 
 07 Dec 2020 16:11:26 +0100)
Subject: Re: bug#13795: 24.3.50; epa-insert-keys improvements
References: <E1U9KHq-0002rC-Vo@HIDDEN> <87lfearbx7.fsf@HIDDEN>
 <E1km9VW-0004pj-SL@HIDDEN> <87y2i9hcrl.fsf@HIDDEN>
Message-Id: <E1kmVf5-0000jB-4O@HIDDEN>
Date: Tue, 08 Dec 2020 00:35:43 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 13795
Cc: 13795 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > It could save the text in a file, and compare that file's mtime with
  > > that of the keyring to see whether to regenerate the file.  That way,
  > > the memoization will work from one Emacs session to another.

  > I think caching the data in a file would be more bother than it's worth,

It would hardly be any bother.  One function call can write it,
and one function call can read it.  It might be just as easy as caching
in a buffer.

But caching in a buffer would provide most of the benefit of caching
in a file.


-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.

Message received at 13795 <at> debbugs.gnu.org:


Received: (at 13795) by debbugs.gnu.org; 7 Dec 2020 15:11:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 10:11:40 2020
Received: from localhost ([127.0.0.1]:54888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmIAu-0003Rx-1H
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 10:11:40 -0500
Received: from quimby.gnus.org ([95.216.78.240]:38102)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kmIAt-0003Rl-7F
 for 13795 <at> debbugs.gnu.org; Mon, 07 Dec 2020 10:11:39 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=9qGRooSp6kLC6wx1Eujlei6fnu9UNOZfC4Pw4Lp75ys=; b=gd7ftU40bJN4YVrPa70ba5UbLX
 tS9YcH03uugvJzb0uzheRXqCGdQ8awOIWmbn0FZxi30Xdqwwvcur9GdvFOmMC7vSFxNacH8KtTBmr
 6RoZOpdaZazHmcYp9K87Nl0FG3v/l6yeN/nEPi65s3QwDKwpm7eqTEv8CMoznmCbHTfM=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kmIAi-0006mg-37; Mon, 07 Dec 2020 16:11:33 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Richard Stallman <rms@HIDDEN>
Subject: Re: bug#13795: 24.3.50; epa-insert-keys improvements
References: <E1U9KHq-0002rC-Vo@HIDDEN> <87lfearbx7.fsf@HIDDEN>
 <E1km9VW-0004pj-SL@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWxiF2YckxJQiaI
 Yjv///9BI6RqAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QMBw4vJD2n1zoAAAGmSURBVDjLfZQBcsQg
 CEW1uQDICSIXELn/3fpBk8222zKzM5onCB/cUpiZuGwjrpxWCvdlUz1s7zrdoHfvrvMNxDFfDj5z
 E6D2rj1+imjqc14AHvzLZnq8At/2L+AbTJWPwJmrX2fmKHwucAoxW9ugjdvDcN64/QqlDpVE1i36
 Bgz5o0CFMoiYocSdxzR3m6ekstujYlnxuaBiS/U3iCUyHQGcYtcWkIgvUwwKpsTWJoDm5e5aR/QJ
 +ndtbWWl8eEsxaJrbuLtSjf89SAXiJGhnlqp1Gx5hnpTl2Tu1Q8wxD8DK/IJqJMJL58EsupAiURr
 DgLMy+OsoV3Z5BGKsMBgBJAnCB2hcYwy0dx3BDgL+QhZDzi1h8dZKRtRxQ97goEuVIDoJWcMW7Ij
 JYr3c6AUDATSteVRx4EVKAHkF76BlJhEcbENcqir4Rmas8eo8MTlHOnihVglOkRscI1xbCtUV45p
 q0hWoD3A3B4n+6gJGQ23pjfAaOBkFoFLvi4PJIJZR1RUkn8AttJFWtdji6HCcWzDY5u+vcIHWE/s
 Bbh/NC78h/0JvgH7fYPLB098OgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0xMi0wN1QxNDo0Nzoz
 NiswMDowMAJacvIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMTItMDdUMTQ6NDc6MzYrMDA6MDBz
 B8pOAAAAAElFTkSuQmCC
X-Now-Playing: Shirley Collins's _Heart's Ease_: "Barbara Allen"
Date: Mon, 07 Dec 2020 16:11:26 +0100
In-Reply-To: <E1km9VW-0004pj-SL@HIDDEN> (Richard Stallman's message
 of "Mon, 07 Dec 2020 00:56:22 -0500")
Message-ID: <87y2i9hcrl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Richard Stallman <rms@HIDDEN> writes: > I am running master
 from June. epa-insert-keys just took 6 seconds > to insert 700 keys. I still
 have a build of master from Oct 2019; > epa-insert-keys took the same time
 in that version. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 13795
Cc: 13795 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Richard Stallman <rms@HIDDEN> writes:

> I am running master from June.  epa-insert-keys just took 6 seconds
> to insert 700 keys.  I still have a build of master from Oct 2019;
> epa-insert-keys took the same time in that version.

Yes, that sounds uncomfortably slow.

Hm...  is there any way to inject hundreds of keys into the key ring to
make it easier to test what part of this is taking time.  Anybody know?

If it's external (i.e., the gpg tools are slow), then we should cache
the results -- otherwise we should fix the code on the Emacs side to be
faster.

> It could save the text in a file, and compare that file's mtime with
> that of the keyring to see whether to regenerate the file.  That way,
> the memoization will work from one Emacs session to another.

I think caching the data in a file would be more bother than it's worth,
but we could certainly cache the data in-memory during an Emacs session.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.

Message received at 13795 <at> debbugs.gnu.org:


Received: (at 13795) by debbugs.gnu.org; 7 Dec 2020 05:56:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 00:56:32 2020
Received: from localhost ([127.0.0.1]:52099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1km9Vg-0007Wb-7i
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 00:56:32 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47530)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1km9Vd-0007WB-Jr
 for 13795 <at> debbugs.gnu.org; Mon, 07 Dec 2020 00:56:29 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49482)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1km9VX-0007aY-SM; Mon, 07 Dec 2020 00:56:24 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1km9VW-0004pj-SL; Mon, 07 Dec 2020 00:56:23 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87lfearbx7.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sun, 
 06 Dec 2020 20:07:16 +0100)
Subject: Re: bug#13795: 24.3.50; epa-insert-keys improvements
References: <E1U9KHq-0002rC-Vo@HIDDEN> <87lfearbx7.fsf@HIDDEN>
Message-Id: <E1km9VW-0004pj-SL@HIDDEN>
Date: Mon, 07 Dec 2020 00:56:22 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 13795
Cc: 13795 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Are you still seeing this issue in more recent versions of Emacs?

I am running master from June.  epa-insert-keys just took 6 seconds
to insert 700 keys.  I still have a build of master from Oct 2019;
epa-insert-keys took the same time in that version.

I don't remember when I reported this problem or with which Emacs
version, or how long the operation took.

Maybe that conversion job could not be done faster, but epa could save
the resulting text.  That would make it very fast if the keyring is
unchanged.

It could save the text in a file, and compare that file's mtime with
that of the keyring to see whether to regenerate the file.  That way,
the memoization will work from one Emacs session to another.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.

Message received at 13795 <at> debbugs.gnu.org:


Received: (at 13795) by debbugs.gnu.org; 7 Dec 2020 05:56:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 00:56:30 2020
Received: from localhost ([127.0.0.1]:52097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1km9Vd-0007WN-Sb
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 00:56:30 -0500
Received: from eggs.gnu.org ([209.51.188.92]:47526)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1km9Vb-0007W9-Ni
 for 13795 <at> debbugs.gnu.org; Mon, 07 Dec 2020 00:56:28 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49481)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1km9VV-0007Zj-JX; Mon, 07 Dec 2020 00:56:22 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@HIDDEN>)
 id 1km9VS-0004nz-Sg; Mon, 07 Dec 2020 00:56:19 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87lfearbx7.fsf@HIDDEN> (message from Lars Ingebrigtsen on Sun, 
 06 Dec 2020 20:07:16 +0100)
Subject: Re: bug#13795: 24.3.50; epa-insert-keys improvements
References: <E1U9KHq-0002rC-Vo@HIDDEN> <87lfearbx7.fsf@HIDDEN>
Message-Id: <E1km9VS-0004nz-Sg@HIDDEN>
Date: Mon, 07 Dec 2020 00:56:18 -0500
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 13795
Cc: 13795 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Are you still seeing this issue in more recent versions of Emacs?

I am running master from June.  epa-insert-keys just took 7 seconds
to insert 700 keys.  Maybe it couldn't do that job faster, but it
could cache the result and make it very fast if the keyring is unchanged.

It could even store the output in a file and compare that file's
mtime with that of the keyring.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 13795 <at> debbugs.gnu.org:


Received: (at 13795) by debbugs.gnu.org; 6 Dec 2020 19:07:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 06 14:07:33 2020
Received: from localhost ([127.0.0.1]:51295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1klzNd-0006Af-D4
	for submit <at> debbugs.gnu.org; Sun, 06 Dec 2020 14:07:33 -0500
Received: from quimby.gnus.org ([95.216.78.240]:56502)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1klzNb-0006AN-WE
 for 13795 <at> debbugs.gnu.org; Sun, 06 Dec 2020 14:07:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=YW4aPb4w93pd2JeNb+wwf+xGOUEtzgL+Vidw2CrnZKY=; b=mpZPdpZwcSzOHH2v5TSKkGVY2M
 GTyOrUJgBxHaCFhJ4zabJWnGiN9J9x73Nofgbza09nMHn4fg1dh4uWNGp1VbkTD8OadnEkUcMMj/2
 p3ugb9n3TH+94vhDWHSDn9lk5w58wqxydidR++mMpzB1jE+1jQ6wUctTHEWxa+QUiAvE=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1klzNO-0007AW-2p; Sun, 06 Dec 2020 20:07:26 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Richard Stallman <rms@HIDDEN>
Subject: Re: bug#13795: 24.3.50; epa-insert-keys improvements
References: <E1U9KHq-0002rC-Vo@HIDDEN>
X-Now-Playing: Sylvain Chauveau's _Life Without Machines_: "....en........."
Date: Sun, 06 Dec 2020 20:07:16 +0100
In-Reply-To: <E1U9KHq-0002rC-Vo@HIDDEN> (Richard Stallman's message
 of "Sat, 23 Feb 2013 13:57:30 -0500")
Message-ID: <87lfearbx7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Richard Stallman <rms@HIDDEN> writes: > epa-insert-keys is
 slow to start. If I use it multiple times > in a row, it is slow each time.
 > > It should check whether the keyring has changed since the previous >
 call to epa-insert-keys. If no [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 13795
Cc: 13795 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Richard Stallman <rms@HIDDEN> writes:

> epa-insert-keys is slow to start.  If I use it multiple times
> in a row, it is slow each time.
>
> It should check whether the keyring has changed since the previous
> call to epa-insert-keys.  If not, it should use the same buffer
> contents.
>
> The slowness is surprising -- maybe it can be sped up.

epa-insert-keys is very fast for me (but I don't have a very large key
ring).

Are you still seeing this issue in more recent versions of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Feb 2013 18:59:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 23 13:59:23 2013
Received: from localhost ([127.0.0.1]:46048 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1U9KJe-0007ZF-Vq
	for submit <at> debbugs.gnu.org; Sat, 23 Feb 2013 13:59:23 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34175)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rms@HIDDEN>) id 1U9KJb-0007Z7-QM
	for submit <at> debbugs.gnu.org; Sat, 23 Feb 2013 13:59:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rms@HIDDEN>) id 1U9KI4-0000k1-DZ
	for submit <at> debbugs.gnu.org; Sat, 23 Feb 2013 13:57:50 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,
	USER_IN_WHITELIST autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:53813)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
	id 1U9KI4-0000jx-Ah
	for submit <at> debbugs.gnu.org; Sat, 23 Feb 2013 13:57:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45408)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
	id 1U9KHy-0000zT-He
	for bug-gnu-emacs@HIDDEN; Sat, 23 Feb 2013 13:57:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rms@HIDDEN>) id 1U9KHr-0000hS-Pz
	for bug-gnu-emacs@HIDDEN; Sat, 23 Feb 2013 13:57:38 -0500
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37473)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
	id 1U9KHr-0000hO-MD
	for bug-gnu-emacs@HIDDEN; Sat, 23 Feb 2013 13:57:31 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rms@HIDDEN>)
	id 1U9KHq-0002rC-Vo; Sat, 23 Feb 2013 13:57:31 -0500
Date: Sat, 23 Feb 2013 13:57:30 -0500
Message-Id: <E1U9KHq-0002rC-Vo@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15
From: Richard Stallman <rms@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; epa-insert-keys improvements
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -7.6 (-------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: rms@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -7.6 (-------)


epa-insert-keys is slow to start.  If I use it multiple times
in a row, it is slow each time.

It should check whether the keyring has changed since the previous
call to epa-insert-keys.  If not, it should use the same buffer
contents.

The slowness is surprising -- maybe it can be sped up.


In GNU Emacs 24.3.50.4 (mips64el-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2013-02-02 on chiefs-gnewsense
Bzr revision: 111655 christopher@HIDDEN
System Description:	Debian GNU/Linux 6.0.6 (squeeze)

Configured using:
 `configure CFLAGS=-O0 -g --with-gif=no --with-tiff=no --no-create
 --no-recursion'

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: RMAIL

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  gpm-mouse-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
L D SPC m a k e SPC i t SPC l a t e r SPC i f SPC t 
h a t SPC s u i t s SPC y o u . C-n C-p C-k C-a C-k 
C-o I SPC s e e . SPC SPC I SPC t h i n k SPC i t SPC 
i s SPC b e s t SPC t o SPC e x p e c t SPC m e SPC 
a r o u n d SPC 5 p m . C-n C-c C-c d x SPC C-n C-n 
C-n ESC v C-n C-n C-@ C-n C-n r ESC , RET T h a t SPC 
s e e m s SPC g o o d SPC t o o . RET C-c C-c C-d C-d 
C-d C-d ESC n u SPC SPC C-d C-d C-d x g n x SPC d x 
C-@ C-x b o l d RET C-x b t r i p s RET ESC < C-u C-n 
C-v C-p C-p C-e C-@ ESC b ESC b ESC b ESC b ESC b ESC 
b ESC f ESC f ESC f C-f C-f C-x C-x C-b ESC w C-x 4 
m C-y C-n S i g n e d SPC k e y C-n C-n C-n ESC x e 
p a SPC i s DEL n s TAB RET ESC > ESC b m C-c C-c C-x 
o C-c C-s C-_ C-p C-p C-p C-e ESC b ESC b ESC d M y 
C-n C-n C-n ESC x ESC p RET C-u C-n C-n C-n m C-c C-c 
C-x o C-c C-c ESC x r e p o r t SPC e m a c v s DEL 
DEL s SPC b u g RET

Recent messages:
Expunging deleted messages...done
Mark activated
Mark set [4 times]
Sending...
Wrote /home/rms/outgoing/out-3
Sending...done
Undo!
Sending...
Wrote /home/rms/outgoing/out-4
Sending...done

Load-path shadows:
None found.

Features:
(wid-edit novice log-view vc-rcs rlogin unrmail epa-mail epa derived
epg epg-config two-column kmacro iso-transl mule-diag goto-addr
thingatpt view etags mail-extr shadow emacsbug bug-reference diff
cc-langs cl cl-lib cc-mode cc-fonts cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs dired-aux mule-util
cal-move cal-menu calendar cal-loaddefs log-edit pcvs-util add-log
diff-mode easy-mmode vc vc-dispatcher rmailsum rect parse-time vc-cvs
sgml-mode gnus-util mailcap find-func vc-bzr jka-compr rmailout
dabbrev shell pcomplete grep compile comint ansi-color ring misearch
multi-isearch quail help-mode mailalias qp rmailmm message sendmail
format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode
mailabbrev gmm-utils mailheader mail-parse rfc2231 dired t-mouse
time-date rmailedit rmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils paren cus-start cus-load nadvice advice help-fns
tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call





Acknowledgement sent to rms@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13795; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 20 Jan 2021 17:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.