Article View: comp.lang.c++.leda
Article #160map, print_statistics
From: Dietmar Wolz
Date: Mon, 13 Nov 1995 10:02
Date: Mon, 13 Nov 1995 10:02
29 lines
2046 bytes
2046 bytes
Some questions and remarks on LEDA3.3b: In my application (computation of colimits of diagrams of algebraic specifications and attributed graphs) I tried to find out which is the best representation for morphisms. I tried all map- and dictionary-types and noticed the following facts: - the "print_statistics"-results doesn't coincide with the real memory consumption, because for hash-maps the size of the table isn't taken into account (I use a huge amount of small maps). - the initial size of (hash-)map tables is at least 512 (I would like to know why the constructor argument is overwritten). - I patched the minimum table size for map from 512 to 8 and got the best performance both in speed and memory consumption compared to the other dictionary types on my linux machine at home. - unfortunately I got a segvio on my SUNOS-Sparc at work, which disappears when I change the minimum table size for map back to 512 (even 256 doesn't work). So I am very interested in a working implementation of small hash-maps. Thank you in advance, Dietmar Wolz E-Mail: dietmar@cs.tu-berlin.de Technische Universitaet Berlin Tel: (030) 314-73137 FB 13 / Sekr. FR 6-1 / Raum FR 6026 Fax: +49-30-314-23516 Franklinstr. 28/29 10587 Berlin Germany -- Dietmar Wolz E-Mail: dietmar@cs.tu-berlin.de Technische Universitaet Berlin Tel: (030) 314-73137 FB 13 / Sekr. FR 6-1 / Raum FR 6026 Fax: +49-30-314-23516 Franklinstr. 28/29 10587 Berlin Germany
Technical Details
Message-ID:
<48753q$mpu@news.cs.tu-berlin.de>Path:
arc1-ca.pugleaf.net!cs.tu-berlin.de!dietmarShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!cs.tu-berlin.de!dietmar From: dietmar@cs.tu-berlin.de (Dietmar Wolz) Newsgroups: comp.lang.c++.leda Subject: map, print_statistics Date: 13 Nov 1995 10:02:34 GMT Organization: Technical University of Berlin, Germany Message-ID: <48753q$mpu@news.cs.tu-berlin.de> NNTP-Posting-Host: trefoils.cs.tu-berlin.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit