Re: [Boost-bugs] [Boost C++ Libraries] #1980: [Boost Graph library] functionality to reserve memory

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1980: [Boost Graph library] functionality to reserve memory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-13 18:50:15


#1980: [Boost Graph library] functionality to reserve memory
---------------------------------------+------------------------------------
  Reporter: marc.albers@… | Owner: jewillco
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: graph
   Version: Boost 1.35.0 | Severity: Optimization
Resolution: wontfix | Keywords: Boost Graph library, std::vector, reserve memory
---------------------------------------+------------------------------------

Comment (by apolukhin):

 Those functions are not really required, because m_vertices is public. So
 you can just call {{{graph.m_vertices.resize(35000);}}}

 It gives a really good performance boost (in one of my projects gave 30%
 boost), but you shall know average vertices count.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1980#comment:4>
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