home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!dkuug!daimi!sabroe
- From: sabroe@daimi.aau.dk (Morten Sabroe Mortensen)
- Newsgroups: comp.lang.c++
- Subject: Re: Special-purpose-heap-managers - references
- Message-ID: <1992Dec20.153218.4338@daimi.aau.dk>
- Date: 20 Dec 92 15:32:18 GMT
- References: <1992Dec18.110536.11510@daimi.aau.dk> <1992Dec18.120948.5677@eua.ericsson.se>
- Sender: news@daimi.aau.dk
- Organization: DAIMI: Computer Science Department, Aarhus University, Denmark
- Lines: 44
-
- euamts@eua.ericsson.se (Mats Henricson) writes:
-
- >In article 11510@daimi.aau.dk, sabroe@daimi.aau.dk (Morten Sabroe Mortensen) writes:
- >#Could anyone, -who have tried-, tell, what kind of experiences they have with
- >#special-purpose-heap-managers like 'Pool', in what kind of program, with what
- >#kind of result/speed-up?
-
- >We did a test of several class libraries, of which one was using a Pool class.
- >In one test (putting and removing integers from a Set class) the Pool-based
- >solution was ~20 times faster. That was the extreme case. In another test the
- >gain was "only" 2.3 times.
-
- Nice, nice, - sounds interesting!!!
- Are some of these classes, you tested, availably on the net -
- do you remember where?
-
- >BUT REMEMBER: all this performance difference is NOT because of a Pool class.
- >The libraries differed in many other respects, which affected performance.
-
- >And then again: size and performance isn't everything...
-
- You're right! -size and performance isn't everything!
-
- BUT: If you want high performance, doing SOMETHING to dynamic allocation
- seems to be one of the better ways to gain speed, i think!
- _IF_ allocation could be handled transparently, -like 'Pool' _nearly_
- can do, then.... But arrays...-one should be careful with arrays,
- since they can't be managed transparently...YET!
-
- It ought to be possible to let a special manager manage ALL kinds of
- allocation involving a certain class, -that's what I want, I think!
- TRUE TRANSPARENCY - ABSTRACTION, ABSTRACTION, ABSTRACTION - HIGHLY WANTED!
-
- I'm thinking: When constructing a special-purpose-heap-manager, one should
- be careful not to ramble into some kind of ALIGNMENT-PROBLEM (it could
- easily happen!!!) - that is, it should, -of course(!)-, be portable;
- size and performance isn't everything!
-
- -- Morten.
-
- ---------------------------------------------------------------------------
- Morten Sabroe Mortensen, e-mail: sabroe@daimi.aau.dk
- Department of Computer-science - University of Aarhus, Denmark.
- ---------------------------------------------------------------------------
-