lua-users home
lua-l archive

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


> On a 1Gbs-network, this single call to receive takes an average of 5.3
> seconds when the payload_size is big (128MB).
> Should I think that it takes sometime for  LuaSocket binding to copy
> the received data back into the stack (somewhere here
> https://github.com/diegonehab/luasocket/blob/master/src/buffer.c#L136
> ) ?

I guess you are in a better position than me to answer that question.
(Have a look at [1] too.)

[1] https://github.com/diegonehab/luasocket/blob/master/src/buffer.c#L193

-- Roberto