[gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds
tim.kosse at filezilla-project.org
Fri Nov 3 13:53:53 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Simon Josefsson wrote:
> It is weird that it takes a long time only on some systems. I have
> one old Windows 2000 laptop and one Windows XP SP2 desktop, and it
> definitely doesn't take 10 seconds. Max 2 seconds is more likely.
> I'm curious, how fast is your machine?
It's an IBM Thinkpad R52, 2GHz Pentium M, 1 GB RAM.
Even executing a tiny test program doing nothing else than calling
gnutls_global_init takes 5 seconds, almost exclusively spent in the prng
routines of libgcrypt.
With more complex programs it takes even longer, > 10 seconds if using
GnuTLS in a program using wxWidgets.
libgcrypt queries HKEY_PERFORMANCE_DATA, that alone takes 3-4 seconds.
Furthermore, libgcrypt walks the local heap, which causes the rest of
the delay. Around 1 second for a minimal program and increases if the
program gets more complex. Only limited by the amount of memory which
can be allocated on the heap I think.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Gnutls-dev