cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: malloc/free.. callback functions

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 5 Apr 2004 17:22:41 -0700

On Mon, Apr 05, 2004 at 05:06:10PM -0700, Seshubabu Pasam wrote:
[...]
> These callbacks provide a way for us to
> hook in our routines and check for API mis-use, memory problems etc.
>
> BTW Dirk: I really doubt this would make the curl library bloated.

But it would increase the libcurl overhead, either a run-time overhead for
all users because of an extra indirection on all memory function calls (for
a straightforward implementation), or a code size/maintenance overhead (for
an implementation built around macros). There's a cost for implementing
this (or any) feature, and it has to be balanced against the potential gain.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-04-06