Incremental garbage collection
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Fri Jan 21 12:05:49 UTC 2022
On Friday, 21 January 2022 at 11:47:05 UTC, user1234 wrote:
> No. The theory is that GC is not *that much a handicap* for
> real audio because it's *not really real-time*. It is not that
> "The GC is for audio-work". That theory is just totally wrong.
It is possible to make it hard real time, by imposing a max heap
size, which is reasonable for audio.
You need to use a garbage collector of some sort, either language
level or application level if your application allows the user to
build a graph. Which is some creative audio applications does
(including audio programming languages).
If you can get away with using a language level collector then
that will be the cheaper option. To get there you need to take a
niche-approach like he does.
More information about the Digitalmars-d