News for hackers. Stuff that matters.
Re:Treadmill garbage collector by H. Baker by travisgriggs on Tuesday July 26, 2022 @02:01AM (#32234827)
Iirc, there are two approaches to managing your treadmill.

You either use one treadmill with a fixed size abject header/pointer. The “guts” of the object are placed on a heap which gets spaghettified and fragmented pretty fast, especially if your not going to move bodies, because… real time.

The other approach is to use multiple treadmills/rings for different size objects. Different rings are then used for different sizes of objects. In this way, your heap fragmentation/locality improves, but at the added cost of indirecting on object size.

There are no comments on this comment yet.