cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Info request about the zero copy interface

From: Legolas <legolas558_at_email.it>
Date: Thu, 01 Dec 2005 02:22:14 +0100

Daniel Stenberg ha scritto:

> On Tue, 29 Nov 2005, Legolas wrote:
>
>> *Do you think using this object would be useful?* Or else do you want
>> me to extract the memory streams interface code from the main project?
>
>
> Sorry, but I don't quite understand how all that comes into play when
> we'd add a zero copy interface.
>
> To make downloads zero copy, libcurl must have a place and size to
> store data. How does it get that? And how does it ask for subsequent
> buffers?
>
> To make uploads zero copy, libcurl must get a data buffer with a size
> (without having to copy it). How does it get that? And how does it ask
> for subsequent buffers?
>
> Please be more specific on how your ideas would get turned into a
> libcurl API.
>
OK, I will explain it in a few lines:

My idea is to give libcurl an RWops object (which is an input or output
stream), and then libcurl will call its assigned methods to make any
read/write operation. I know this is a radical change, but it may speed
up a lot every operation.
Received on 2005-12-01