Re: [Boost-bugs] [Boost C++ Libraries] #11419: Unexpected memory usage with unorderd_map

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11419: Unexpected memory usage with unorderd_map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-06-27 03:58:12


#11419: Unexpected memory usage with unorderd_map
----------------------------------------------+--------------------------
  Reporter: DarioOliveri <oliveridario89@…> | Owner: danieljames
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: unordered
   Version: Boost Release Branch | Severity: Optimization
Resolution: | Keywords:
----------------------------------------------+--------------------------

Comment (by DarioOliveri <oliveridario89@…>):

 not only, calling "clear" does not reset memory! The only way actually to
 effectively make sure unordered map free all used memory is to make sure
 it goes out of scope (or wrap it with a smart pointer to be able to delete
 it).

 calling "clear();" followed by "rehash(0)"; seems to reduce memory usage
 to few bytes (but still some memory is allocated!)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11419#comment:1>
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:18 UTC