Boost C++ Libraries: Ticket #9826: compress boost::property https://svn.boost.org/trac10/ticket/9826 <p> Hello, </p> <p> looking at property_map, I noticed that boost::property is wasting space. property&lt;tag,double&gt; will typically have size 16 because of the no_property member. list_edge&lt;Vertex,no_property&gt; will also be too long for the same reason. A proper use of the empty base optimization (possibly through tuple or compressed_pair) should help with this. Partial specializations for no_property may be a simpler alternative. </p> <p> Graphs can grow large, and it seems quite important to avoid wasting memory. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9826 Trac 1.4.3 marc.glisse@… Sat, 06 Dec 2014 15:46:49 GMT <link>https://svn.boost.org/trac10/ticket/9826#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9826#comment:1</guid> <description> <p> This appears to be a regression caused by: </p> <pre class="wiki">commit 616b9e71348b430af89a2405b5b8463557e63dec Author: Jeremiah Willcock &lt;jewillco@osl.iu.edu&gt; Date: Sat Jun 30 20:00:41 2012 +0000 </pre><p> Before that commit, <code>property</code> was implemented with derivation (which is still what the documentation shows...), and the empty base optimization avoided wasting so much space. </p> </description> <category>Ticket</category> </item> </channel> </rss>