$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Matthew Hurd (matt_at_[hidden])
Date: 2004-02-11 22:08:07
Just a note to say thanks for boost::function ;-)
Just completed some timings of the cost of a boost function call using a
boost::function<void (void)> and a raw function pointer versus inlining the
function's code directly into the source.
For my circumstances (your mileage may vary):
Calling via raw function pointer = 314 microseconds +/- 1
Calling via boost function variable = 328 microseconds +/- 1
Only 14 microseconds of difference. Nice work, I was expecting much more.
Regards,
Matt Hurd.
Note: Optimised VC7.1 output, winXP 1a, Athlon 2800+ (2.09GHz)