
28 Dec
2005
28 Dec
'05
6:51 a.m.
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