cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FILE * => fd ?

From: SM <nntp_at_iname.com>
Date: Fri, 10 Aug 2001 21:40:13 +0400

At 10:01 10-08-2001 +0200, Daniel Stenberg wrote:
>In general, I don't mind adding support for different ways to access files.
>Although I doubt there's much point in optimizing for speed to this degree in
>disk I/O when we're writing a network utility.

Agreed. What I like about cURL is its portability across several
platforms. That is more important than an speed improvement in the file I/O.

>mmap() is certainly not as portable as the fopen() of today or even the
>suggested file descriptor approach. libcurl runs on numerous platforms, and

It will certainly break libcurl on some of the esoteric platforms currenly
supported. I am wary of any changes to the current file I/O mechanism.
BTW, I was not suggesting moving to mmap().

Regards,
-sm

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