The D standard library is built on GC, is that a negative or positive?

IGotD- nise at nise.com
Thu Dec 15 11:21:56 UTC 2022


On Thursday, 15 December 2022 at 08:42:22 UTC, ikod wrote:
>
> Probably this is common case when your program works in tight 
> loop - like game, or webserver under high load. Process just 
> have no spare time to handle GC cleanups (for stop-the-world 
> collectors).

One interesting observation here in the forum and also in 
articles, blogs etc about the D garbage collector about how you 
can speed up memory management. All those ideas and tricks are 
based on that you in some way should avoid or circumvent the 
garbage collector. Then the question is, how good is a computer 
algorithm if you are supposed to avoid it all the time?

Also, it doesn't matter if "the GC stop world" duration are very 
short. It takes time for the OS scheduler to stop all thread 
which probably is a significant part of the GC pause. Then 
depending on the load the is also a duration until the thread is 
started again.


More information about the Digitalmars-d mailing list