Re: memxor

2011-04-12 Thread Simon Josefsson
Nikos Mavrogiannopoulos writes: > On 04/12/2011 03:50 PM, Simon Josefsson wrote: > I'm surprised the gnulib memxor ends up being used by GnuTLS at all. Nikos, shouldn't the Nettle implementation be used instead? Is this a question of the GnuTLS (gnulib) memxor symbol replacing the

Re: memxor

2011-04-12 Thread Nikos Mavrogiannopoulos
On 04/12/2011 03:50 PM, Simon Josefsson wrote: >>> I'm surprised the gnulib memxor ends up being used by GnuTLS at all. >>> Nikos, shouldn't the Nettle implementation be used instead? Is this a >>> question of the GnuTLS (gnulib) memxor symbol replacing the memxor that >>> is shipped with Nettle?

Re: memxor

2011-04-12 Thread Simon Josefsson
Nikos Mavrogiannopoulos writes: > On 04/12/2011 03:12 PM, Simon Josefsson wrote: > I had 10% speed-ups in a web server that used gnutls with the optimized version of memxor. That is because CBC encryption mode uses XOR heavily. 10% is enormous speed-up considering that this is a ve

Re: memxor

2011-04-12 Thread Nikos Mavrogiannopoulos
On 04/12/2011 03:12 PM, Simon Josefsson wrote: >>> I had 10% speed-ups in a web server that used gnutls with the optimized >>> version of memxor. That is because CBC encryption mode uses XOR heavily. >>> 10% is enormous speed-up considering that this is a very small part of >>> the encryption proc

Re: memxor

2011-04-12 Thread Simon Josefsson
Bruno Haible writes: > Hello Nikos, > >> > Can you tell me >> > one program which spends more than 20% of its runtime in memxor? >> >> I had 10% speed-ups in a web server that used gnutls with the optimized >> version of memxor. That is because CBC encryption mode uses XOR heavily. >> 10% is eno

Re: memxor

2011-04-12 Thread Bruno Haible
Hello Nikos, > > Can you tell me > > one program which spends more than 20% of its runtime in memxor? > > I had 10% speed-ups in a web server that used gnutls with the optimized > version of memxor. That is because CBC encryption mode uses XOR heavily. > 10% is enormous speed-up considering that

Re: memxor

2011-04-12 Thread Nikos Mavrogiannopoulos
On 04/12/2011 02:29 AM, Bruno Haible wrote: >> As an unrelated suggestion for memxor.c I had a discussion with >> another project about that and we concluded on a gmp-based version >> that is orders of magnitude faster. It would be nice if gnulib >> included the optimized code by default. > If yo