[Issue 3463] Integrate Precise Heap Scanning Into the GC

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 14 17:40:21 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3463



--- Comment #110 from bearophile_hugs at eml.cc 2011-04-14 17:36:47 PDT ---
(In reply to comment #109)
> (In reply to comment #108)
> > That's why heap allocations in real-time code are a bad idea.  This patch won't
> > change that.
> 
> Um, no, the GC is currently fast enough to scan a small heap within the
> timeframe of a video frame.

Do you have a proof of this? Because currently the GC gets called when you
allocate heap memory. And allocating heap memory (for objects, structs, dynamic
arrays, closures, array concatenations, etc) between two frames of a fast video
game is probably not a wise thing to do (today) in D.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list