[gnutls-devel] Automatic library initialization

Nikos Mavrogiannopoulos n.mavrogiannopoulos at gmail.com
Tue Nov 17 07:30:36 CET 2015

On Mon, 2015-11-16 at 21:14 +0100, Tim Rühsen wrote:

> To see what function calls takes how many cycles, I use (on Debian 
> SID, KDE):
> $ valgrind --tool=callgrind wget
> $ kcachegrind callgrind.out.xxxxx
> Shows ~16.000.000 cycles.
> Most (65%) of the time goes into _gnutls_rnd_init() which calls 
> wrap_nettle_rnd_init().

Interesting. That's should be the yarrow and salsa20 initialization for
the random number generation. That doesn't seem to be something we can
easily optimize unless we switch to different RNG.

I'll try to check whether there can be parts of the global init that
provide a significant optimization if moved to a static initialization.


More information about the Gnutls-devel mailing list