Subject: [Boost-bugs] [Boost C++ Libraries] #6101: overhead with creating multi_array_ref with GCC 3.4.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-07 08:53:10
#6101: overhead with creating multi_array_ref with GCC 3.4.6
------------------------------------------------------+---------------------
Reporter: Maxim Yanchenko <Maxim.Yanchenko@â¦> | Owner: garcia
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_array
Version: Boost 1.47.0 | Severity: Optimization
Keywords: |
------------------------------------------------------+---------------------
We spotted this with profiler and had to switch from
boost::const_multi_array_ref to just std:pair of pointers.
GCC 3.4.6 generates huge code for this primitive function (to represent a
raw pointer as a 1D-array), comparing to GCC 4.4.4:
{{{
boost::const_multi_array_ref<int,1>
make(const int* begin, const boost::array<int,1>& size)
{
return boost::const_multi_array_ref<int,1>(begin, size);
}
}}}
The generated code and compilation options are attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6101> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC