draft proposal for ref counting in D
deadalnix
deadalnix at gmail.com
Mon Oct 14 13:45:35 PDT 2013
On Monday, 14 October 2013 at 19:42:36 UTC, Michel Fortin wrote:
> Indeed. The current garbage collector makes it easy to have
> shared pointers to shared objects. But the GC can also
> interrupt real-time threads for an unpredictable duration, how
> do you cope with that in a real-time thread?
>
> I know ARC isn't the ideal solution for all use cases. But
> neither is the GC, especially for real-time applications. So,
> which one would you recommend for a project having a real-time
> audio thread?
If you don't want any pause, concurrent GC is the way to go. This
type of GC come at a cost of increased memory usage (everything
is a tradeoff) but exists.
More information about the Digitalmars-d
mailing list