home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12472 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.7 KB  |  32 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!microsoft!hexnut!jimad
  3. From: jimad@microsoft.com (Jim Adcock)
  4. Subject: Re: Garbage Collection for C++
  5. Message-ID: <1992Aug18.011336.17964@microsoft.com>
  6. Date: 18 Aug 92 01:13:36 GMT
  7. Organization: Microsoft Corporation
  8. References: <DAVEG.92Aug13025629@synaptx.synaptics.com> <TMB.92Aug14130323@arolla.idiap.ch> <1992Aug15.025613.4571@news.mentorg.com>
  9. Lines: 21
  10.  
  11. In article <1992Aug15.025613.4571@news.mentorg.com> bcannard@hppcb36.mentorg.com (Bob Cannard @ PCB x5565) writes:
  12. |There are plenty of reasons whey GC is genuinely more efficient than
  13. |manual: it allows better-designed data structures, it eliminates the need to
  14. |copy data which plagues large systems using manual recycling, and it reduces
  15. |development and maintenance costs. But the idea that GC is inherently faster
  16. |than manual is bogus.
  17.  
  18. Likewise the idea that manual is inherently faster than GC is bogus.  Likewise
  19. the idea that any memory management scheme is inherently faster than some
  20. other memory management scheme is bogus.  Its always possible to come up
  21. with examples where one memory management scheme excels and the other 
  22. memory management technique stinks.  Taken to the extreme, one creates an
  23. example where one memory management scheme works, and the other technique
  24. fails, thus "proving" the superiority of one's pet memory management scheme.
  25. No memory management scheme wins uniformly.  But, if one must constantly write
  26. custom allocators, then one has destroyed code reuse.  An example of this is
  27. the problem of "dueling global news" or "dueling multiple inheritence news"
  28.  
  29. GC'ed vs non-GC are two major poles of memory management.  Both have advantages,
  30. both should be supported, unfortunately they cannot be cleanly mixed.
  31.  
  32.