Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-12-28 01:51:32


Alex Besogonov wrote:

> Good <time-of-day>!
>
> Why not use 'small buffer optimization' for boost::function? Most of
> allocations are 8-16 bytes - an optimal size for SBO.
>
> This optimization will make boost::function _much_ faster - in one of

How much faster, exactly? Recently, in a thread "[signal] performance" I've
posted a small benchmark that finds boost::function to take 4 times more
time that call via function pointer -- which, IMO, is pretty fast.

Can you use that benchmark to obtain speedup for your optimization?

> our project boost::function is responsible for 15% of the whole
> processor time.

I find it pretty strange, can you clarify how it's possible. How did you
measure the time spend in boost::function?

- Volodya


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