[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds
From: |
Tim Kosse |
Subject: |
[gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds |
Date: |
Fri, 03 Nov 2006 13:53:53 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFSzvh8N9+lcqiUkURAr6pAKDbNXnllB5cuyvVWkgiJmmxUyUH+wCgqQFU
Sxs6j76cYCqj3emZKm0rcYc=
=fU0f
-----END PGP SIGNATURE-----
- [gnutls-dev] Gnutls4Win: gnutls_global_init takes > 10 seconds, Tim Kosse, 2006/11/02
- [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Simon Josefsson, 2006/11/03
- [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds,
Tim Kosse <=
- Re: [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Werner Koch, 2006/11/03
- [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Simon Josefsson, 2006/11/03
- Re: [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Werner Koch, 2006/11/05
- [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Simon Josefsson, 2006/11/05
- Re: [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Tim Kosse, 2006/11/06
- Message not available
- Re: [gnutls-dev] Re: Gnutls4Win: gnutls_global_init takes > 10 seconds, Werner Koch, 2006/11/05