Boost logo

Boost Users :

Subject: Re: [Boost-users] [Multi-index] hash_unique memory consumption vs std::map
From: Adam Merz (adammerz_at_[hidden])
Date: 2008-11-06 16:27:16


Michael Fawcett <michael.fawcett <at> gmail.com> writes:
> I investigated the node structure that my std::map implementation is
> using. It has an overhead of 3 pointers and 2 chars. This is with
> Visual Studio 2005 SP1.

Are you building in release with _SECURE_SCL #defined to 0? If not, you have
extra size overhead from debug and/or checked iterators being enabled.

See the following links for more information:

http://msdn.microsoft.com/en-us/library/aa985965.aspx
http://msdn.microsoft.com/en-us/library/aa985982.aspx


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net