[gnutls-dev]memory allocation

Nikos Mavroyanopoulos nmav at gnutls.org
Wed May 22 21:36:01 CEST 2002

 I've just noticed that in benchmarks using the libc's allocation
functions, instead of the included gnutls_malloc() made gnutls
about 20% faster. Due to this, and due to the fact that the included
allocation functions did not much except for overwriting memory pointers
(which is not really reliable), I've removed these functions, and
used the libc's ones.

 I've also added the gnutls_global_set_mem_func() which is to set
other memory allocation functions. Thus if one needs to rely on the
memory allocation functions to delete sensitive data, then he may
just use the ones included in libgcrypt, which are considered to be secure 
(but slower).

Nikos Mavroyanopoulos
mailto:nmav at gnutls.org

More information about the Gnutls-devel mailing list