home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!veritas!amdcad!decwrl!src.dec.com!detlefs
- From: detlefs@src.dec.com (Dave Detlefs)
- Newsgroups: comp.lang.c++
- Subject: Re: Special-purpose-heap-managers - references, FTP?
- Message-ID: <1992Dec29.184536.22437@src.dec.com>
- Date: 29 Dec 92 18:45:36 GMT
- Sender: news@src.dec.com (News)
- Organization: DEC Systems Research Center
- Lines: 32
-
-
- I regard the proposition that special-purpose heap managers are "much
- faster" than *all* general purpose ones as quite unproven. It is
- certainly true that there exist bad general purpose allocators, and
- that special purpose allocators are much faster than these. But this
- does not imply that there can't be a really good general-purpose
- allocator whose performance approaches the performance of writing a
- special-purpose allocator for each class in your program. In fact, I
- believe that some variation on the Quickfit algorithm [1] fits the
- bill. If you want to look at some very interesting empirical studies
- of allocator performance, I strongly recommend some papers by Ben Zorn
- and Dirk Grunwald at the University of Colorado [2], [3].
-
- The bottom line being that rather than mess around with custom
- allocators in each program you write, it's possible that you can
- solve the problem pretty once-and-for-all by getting a different
- implementation of malloc on your system.
-
- Dave
- --------------------------------------------------
- [1] Weinstock, C.B. and Wulf, W. A. Quickfit: An efficient algorithm
- for heap storage allocation. ACM SIGPLAN Notices 23(10): 141-144,
- October 1988.
-
- [2] Grunwald, D. and Zorn, B. Custo-Malloc: Efficient Synthesized
- Memory Allocators. Technical Report CU-CS-602-92, Departement of
- Computer Science, University of Colorado at Boulder, Boulder, CO, July
- 1992.
-
- [3] Zorn, B. The Measured Cost of Conservative Garbage Collection.
- Technical Report CU-CS-573-92, Departement of Computer Science,
- University of Colorado at Boulder, Boulder, CO, July 1992.
-