Boost logo

Boost :

Subject: Re: [boost] [function] The cost of boost::function
From: Domagoj Saric (domagoj.saric_at_[hidden])
Date: 2012-04-27 10:38:27


On 17.4.2012. 0:04, Michael Kochetkov wrote:
> Hello, as far as I subscribed to boost mail list for a reason I have decided
> to share an interesting (at least for me) observation of boost::function
> facility I have encountered several years ago. The observation is about the
> cost of the solution and you probably may be interested if you use boost in
> your production.
>
> Let us consider the following code:
<snip>
> I have learned that personally I shall never use boost::function. You
> probably may want to investigate such a code bloat. Though it is probably
> the known and expected behavior.
> And I do agree that CCCC is not quite relevant here. Just for information.

A bit late but FWIW...
...Boost.Function and its 'bloatware' problems are a regular topic on this list.
There have been many proposals but near-zero response from the mantainer(s).
I've made a major rewrite that solves most of the problems
(lists.boost.org/Archives/boost/2010/10/172593.php) so you can try it out if it
helps ;)

-- 
"What Huxley teaches is that in the age of advanced technology, spiritual
devastation is more likely to come from an enemy with a smiling face than
from one whose countenance exudes suspicion and hate."
Neil Postman

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk