curl-library
RE: Small footprint libcurl
Date: Sun, 9 Jun 2002 20:27:32 +0200 (MET DST)
On Fri, 7 Jun 2002, Miklos Nemeth wrote:
> > To make it smaller, add #infdef DISABLE_[PROTOCOL] lines at
> > the appropriate places and then add #define
> > DISABLE_[PROTOCOL] lines in lib/setup.h or something.
> I did it but the gain is practically insignificant. I built a 7.9.7 library
> and a statically linked SSL-enabled curl executable for Windows (VC6) and
> Linux (RedHat7) and here are the sizes (in kilobytes):
I think I must've expressed myself unclear.
There is no current ways to disable certain protocols, the way I suggested
that you should make possible. You can disable SSL, yes, and even IPv6, but
you did say you wanted HTTPS operations so SSL will have to stay.
> My conclusion is that disabling protocols may not worth the configuration
> trouble.
Again: add #infdef DISABLE_[PROTOCOL] lines at the appropriate places in the
source code, and I can assure you that you can get much bigger differences.
The biggest part surely comes when/if you disable FTP.
> Now I know that if I really wanted a small footprint HTTP/SSL client
> library I should look somewhere else and definitly not using OpenSSL.
OpenSSL is not a tiny library, no. SSL is however not a protocol that is
easily to implement in a small way.
> Fortunately, my current application does not require a really small
> HTTP/SSL library, therefore libcurl is perfect for me.
Happy users make me happy. ;-)
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlinkReceived on 2002-06-09