GNU bug report logs -
#24628
GNUtls initialization adds 500ms to startup --- do we really need it just for the RNG?
Previous Next
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
Message #17 received at 24628 <at> debbugs.gnu.org (full text, mbox):
Daniel Colascione <dancol <at> dancol.org> writes:
> 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?
[larsi <at> stories ~]$ time emacs -Q -nw --batch --eval '(kill-emacs)'
real 0m0.021s
user 0m0.008s
sys 0m0.004s
My Emacs (from master) doesn't spend 500ms talking to anything, and it's
built with gnutls support, so the interesting question here is why your
gnutls library is so slow.
You didn't report the bug with `M-x report-emacs-bug', so no information
about your system is available.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.