cURL / Mailing Lists / curl-library / Single Mail


Re: raise chunks of memory in callback

From: Dan Fandrich <>
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 <> 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:
Received on 2011-03-22