Opened 9 years ago
Closed 9 years ago
#9170 closed Bugs (fixed)
Make boost::addressof use BOOST_FORCEINLINE for better performance
Reported by: | Mathias Gaunard | Owned by: | No-Maintainer |
---|---|---|---|
Milestone: | To Be Determined | Component: | utility |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
boost::addressof 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 (2)
by , 9 years ago
Attachment: | boost_addressof_forceinline.diff added |
---|
comment:1 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch to add BOOST_FORCEINLINE to critical boost::addressof functions