[Cbc] Question about memory usage & std::string

Christoph Cullmann cullmann at absint.com
Mon Oct 10 06:47:13 EDT 2016


Hi,

I just profile the memory usage of the solving of some of our large scale ILPs.

The biggest usage is by far the stored column/row names (>> 70-80% of used memory).

It seems that they are internally coppied a lot (e.g. during presolving, simplex, ...).
That seems to be ok, for std::strings that are copy-on-write, like older GCCs,
but with more recent GCCs (and libstdc++) versions or clang/MSVC, you have no copy-on-write.

Is that a known issue or is there an easy way to rectify this?

Greetings
Christoph

-- 
----------------------------- Dr.-Ing. Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann at AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234



More information about the Cbc mailing list