[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memxor
From: |
Simon Josefsson |
Subject: |
Re: memxor |
Date: |
Tue, 12 Apr 2011 15:12:34 +0200 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux) |
Bruno Haible <address@hidden> 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 enormous speed-up considering that this is a very small part of
>> the encryption process.
>
> OK, that is sufficient rationale for having this faster memxor function in
> gnutls.
>
> The next question, also to Simon, is whether you want to have the faster
> memxor only in gnutls and leave the slower but simpler one in gnulib
> (used by the modules crypto/*hmac-* only). Or whether you want to have the
> faster one in gnulib.
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? Maybe the solution is to fix the Nettle
namespace.
/Simon
- restrict qualifier and C++., Nikos Mavrogiannopoulos, 2011/04/10
- Re: restrict qualifier and C++., Paul Eggert, 2011/04/10
- Re: restrict qualifier and C++., Nikos Mavrogiannopoulos, 2011/04/10
- Re: restrict qualifier and C++., Paul Eggert, 2011/04/10
- Re: restrict qualifier and C++., Bruno Haible, 2011/04/10
- Re: restrict qualifier and C++., Nikos Mavrogiannopoulos, 2011/04/11
- memxor [was: restrict qualifier and C++.], Eric Blake, 2011/04/11
- Re: memxor, Bruno Haible, 2011/04/11
- Re: memxor, Nikos Mavrogiannopoulos, 2011/04/12
- Re: memxor, Bruno Haible, 2011/04/12
- Re: memxor,
Simon Josefsson <=
- Re: memxor, Nikos Mavrogiannopoulos, 2011/04/12
- Re: memxor, Simon Josefsson, 2011/04/12
- Re: memxor, Nikos Mavrogiannopoulos, 2011/04/12
- Re: memxor, Simon Josefsson, 2011/04/13