cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FILE * => fd ?

From: Sterling Hughes <sterling_at_designmultimedia.com>
Date: Sun, 12 Aug 2001 02:00:35 -0400 (EDT)

On Sat, 11 Aug 2001, Bjorn Reese wrote:

> Sterling Hughes wrote:
>
> > Optimally, File I/O should be optimized in two areas -- when cURL
> > gets data to write down into a file -- an when cURL reads from
> > files for HTTP uploads (the two areas where I believe signifigant
> > file I/O is done). There are alot of businesses using libcurl where that
> > extra processor cycle *does* matter (at least with PHP there are a few
> > that I know of). Yes, premature optimization is the root of all
> > evil (or so Knuth says :), but, in this case I think the
> > optimizations are worthwhile.
>
> I haven't been following this discussion close, but why don't you
> simply provide your own read/write callback functions, which then
> uses whatever mechanism that is optimal for you?
>

    I do :)

    -Sterling

> _______________________________________________
> Curl-library mailing list
> http://curl.haxx.se/libcurl/
>

_______________________________________________
Curl-library mailing list
http://curl.haxx.se/libcurl/
Received on 2001-08-11