Browse Source

Implement an optimization that David Abrahams and myself came up with,
where Boost.Function uses a bit in the vtable pointer to indicate when
the target function object has a trivial copy constructor, trivial
destructor, and fits within the small object buffer. In this case, we
just copy the bits of the function object rather than performing an
indirect call to the manager.

This results in a 60% speedup on a micro-benchmark that copies and
calls such function objects repeatedly.



[SVN r51743]

Douglas Gregor 17 years ago
parent
commit
1056ba663f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libs/function

+ 1 - 1
libs/function

@@ -1 +1 @@
-Subproject commit 678fb133f08fd6a3c2e7095d69750fcede05cec1
+Subproject commit 6f8ec5c8c5565b56dca38d9e7d2393ea0d963db2

粤ICP备19079148号