GNU bug report logs - #24628
GNUtls initialization adds 500ms to startup --- do we really need it just for the RNG?

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Thu, 6 Oct 2016 19:46:01 UTC

Severity: normal

Tags: moreinfo

Fixed in version 26.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Colascione <dancol <at> dancol.org>
To: 24628 <at> debbugs.gnu.org
Subject: bug#24628: GNUtls initialization adds 500ms to startup --- do we really need it just for the RNG?
Date: Thu, 6 Oct 2016 12:45:23 -0700
On my system, I noticed that the call to emacs_gnutls_global_init is 
adding 500ms to the time it takes to run emacs -Q -nw --batch --eval 
'(kill-emacs)'. We're not actually using GNUtls for anything but an RNG 
seed, and /dev/urandom is also up to the task.

I'm not sure what's making GNUtls so slow, except that it's talking to a 
process called credkit-service, which is using a lot of CPU time. It 
shouldn't matter though.

Can we go back to just using /dev/urandom directly?




This bug report was last modified 8 years and 182 days ago.

Previous Next


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