Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-01-09 14:40:59

Doug Gregor wrote:
> On Jan 9, 2006, at 11:55 AM, Peter Dimov wrote:
>> Yes. It would be interesting to measure the performance for larger
>> buffer
>> sizes, though. The break-even point should occur somewhere around 32
>> or 48,
>> maybe even 64 if the allocator is bad enough.
> Yeah, that's possible. I don't think it's just a matter of finding the
> break-even point for performance, though. function<> is supposed to
> replace function pointers, closures, etc. If it's significantly larger
> than those entities, it becomes harder to justify the use of
> function<>. We have two things to optimize here :(

Yes, it's obviously a tradeoff, but I don't think that function pointers and
closures compete with function<>. You simply can't use a function pointer or
a closure to duplicate function<>.

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