Boost C++ Libraries: Ticket #6101: overhead with creating multi_array_ref with GCC 3.4.6 https://svn.boost.org/trac10/ticket/6101 <p> We spotted this with profiler and had to switch from boost::const_multi_array_ref to just std:pair of pointers. </p> <p> 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: </p> <pre class="wiki">boost::const_multi_array_ref&lt;int,1&gt; make(const int* begin, const boost::array&lt;int,1&gt;&amp; size) { return boost::const_multi_array_ref&lt;int,1&gt;(begin, size); } </pre><p> The generated code and compilation options are attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6101 Trac 1.4.3 Maxim Yanchenko <Maxim.Yanchenko@…> Mon, 07 Nov 2011 08:55:05 GMT attachment set https://svn.boost.org/trac10/ticket/6101 https://svn.boost.org/trac10/ticket/6101 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">34</span> </li> </ul> <p> gcc 3.4.6 </p> Ticket Maxim Yanchenko <Maxim.Yanchenko@…> Mon, 07 Nov 2011 08:55:35 GMT attachment set https://svn.boost.org/trac10/ticket/6101 https://svn.boost.org/trac10/ticket/6101 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">44</span> </li> </ul> <p> gcc 4.4.4 </p> Ticket