curl-library
Re: raise chunks of memory in callback
Date: Tue, 22 Mar 2011 09:16:13 -0700
On Tue, Mar 22, 2011 at 08:57:09AM -0700, Pete Wilson wrote:
> --- On Tue, 3/22/11, Oscar Salvador <pyscholeber_at_gmail.com> wrote:
> > In the other hand, i don't understand this: "Network I/O is
> > about a factor 10e6 slower than invoking a callback"
> > Can you explain me it?
>
> Yeah, explain it! I measure it at only 10e5 times slower! If I've said it once, I've said it 10e5 times: don't exaggerate :-)
Network data typically comes in in 1500 byte frames, anyway, so some entity
will have to be set up to buffer those frames to avoid calling the user
callback more often. That buffering entity could be a layer just above the
user callback, but that just adds pure overhead.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-22