Last update November 12, 2009

Garbage Collector

D has an optional Garbage Collector. It is optional in that it can be disable or its function calls can be stubbed out. However many language features expect a garbage collector and should be avoid while it is disabled.

  1. Do not resize arrays, including concatenation.
  2. Do not use the associative arrays.
  3. Do not make use of closures.
  4. Do not use 'new' to create objects.
  5. Phobos and Tango generally assume a usable GC.
There is also documentation on the garbage collector found in druntime:

You may also want to look at the Garbage Collection Workgroup for progress on improving the GC performance.
FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: November 12, 2009 6:49 (diff))