Boost logo

Boost :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-06-30 09:56:03

On Wednesday 30 June 2004 4:44 am, Vladimir Prus wrote:
> Hello,
> I've became interested in how efficient code-size-wise boost::function is,
> so I wrote a small script which generates a function which calls
> boost::function object N times and finds the size of the generated
> function.
> The results are somewhat interesting and somewhat alarming (to me).
> Given that, IIUC, boost::function has to do indirect call somewhere anyway,
> I'm not sure inlining is such a good idea. Maybe some of the methods should
> be declared out-of-line, so that compiler don't try to inline them?

If I can find a way to do it that won't break many compilers (e,g,, MSVC 6
that can't handle out-of-line definitions for templates) I'll do this for
1.32.0; otherwise, it'll have to wait until after the release.


Boost list run by bdawes at, gregod at, cpdaniel at, john at