#9169 closed Bugs (fixed)
Make Boost.Ref use BOOST_FORCEINLINE for better performance
Reported by: | Mathias Gaunard | Owned by: | Peter Dimov |
---|---|---|---|
Milestone: | To Be Determined | Component: | bind |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
boost::ref is used a lot to build expression templates or function objects which typically need to be inlined to get decent performance.
Using BOOST_FORCEINLINE ensures that it does get inlined, even when minimal inlining options are used.
It is very important to do this to get acceptable performance in debug for some the of the libraries I work on, like Boost.SIMD or NT².
See the attached patch.
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | boost_ref_forceinline.diff added |
---|
comment:1 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 9 years ago
I tend to only close tickets when the fixes are in the release branch in addition to trunk, because this helps me remember to merge.
Note:
See TracTickets
for help on using tickets.
patch to add BOOST_FORCEINLINE to critical boost::ref functions