curl-users
Re: User Supplied buffer
Date: Mon, 25 Apr 2011 16:47:07 +0200 (CEST)
On Mon, 25 Apr 2011, Thippeswamy, Aravind wrote:
You're obviously using the wrong mailing list. libcurl questions are most 
suitable on the curl-library list! I'm cc'ing my response there.
> Ive recently started with libcurl and was trying to search for an option 
> where the response data is directly copied to a user supplied buffer without 
> any intermediate memcpy() .
There's no such interface, no.
> I am looking for an option where the libcurl can be told to use a user given 
> buffer in the socket receive instead of any temporary buffers.
I've yet to see anyone present reasonable data that show there's a noticable 
gain to be had by providing such an interface.
The little profiling I've done has rather showed that the amount of time spent 
on copying data in a regular libcurl-based transfer is rather insignificant. 
Of course it will depend on particular use cases and target architecture etc, 
so I'm open to get proven wrong.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-25