bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: optimizing af_alg


From: Matteo Croce
Subject: Re: optimizing af_alg
Date: Tue, 8 May 2018 10:40:22 +0200

On Tue, May 8, 2018 at 2:59 AM, Bruno Haible <address@hidden> wrote:
> Matteo Croce wrote:
>> Obviously it works only if you always use the same algo and with a
>> single thread
>
> Why only in a single thread? Can't you do
>
>      socket(AF_ALG, SOCK_SEQPACKET, 0) = 3
>      bind(3, {sa_family=AF_ALG, sa_data="hash\0... sha1\0..."}, 88) = 0
>      accept(3, NULL, NULL)     = 4
>      accept(3, NULL, NULL)     = 5
>
> and then work on fd 4 and fd 5 simultaneously, in different threads?
>
> Bruno
>

Yes, it was just a test, multiple accept gives you multiples context
and can work in parallel

-- 
Matteo Croce
per aspera ad upstream



reply via email to

[Prev in Thread] Current Thread [Next in Thread]