Re: GPG key loading takes too long
Joachim Breitner <[email protected]> Tue, 23 Jan 2007 12:00:40 +0100
| Newsgroups | gmane.mail.cone |
|---|---|
| Message-ID | <[email protected]> |
Hi, Am Sonntag, den 21.01.2007, 19:31 -0500 schrieb Sam Varshavchik: > > I just had a look at cone and it looked very promising, especially the > > IMAP support. One thing though annoys me a lot: When I start it, it > > reads in all the keys in my public GPG keyring, which is rather large, > > delaying the start-up too much. Can this be somehow cached, or loaded in > > the background, or something else? > > Feel free to submit patches. I investigated the issue a bit further: The gpglib passes the --list-sigs option to gpg, but does not use the sigs in any way (the lines are ignored in dolist_callback). Changing that to --list-keys in list.c on line 63 fixes this and makes the start considerably faster: - argvec[1]= secret ? "--list-secret-keys":"--list-sigs"; + argvec[1]= secret ? "--list-secret-keys":"--list-keys"; I hope I didn’t miss anything, but I think this works just fine. Greetings, Joachim -- Joachim "nomeata" Breitner mail: [email protected] | ICQ# 74513189 | GPG-Key: 4743206C JID: [email protected] | http://www.joachim-breitner.de/ Debian Developer: [email protected] ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Courier-cone mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-cone