3 ms·
It is really hard to get real time guarantees with RC - given that time for cleaning up depends on a size of a structure. Just imagine it freeing a 10Gb linked
by sklogic 10y ago
It is really hard to get real time guarantees with RC - given that time for cleaning up depends on a size of a structure.
Just imagine it freeing a 10Gb linked list.
Real time pure mark and sweep GCs are easier.
- NickPollard 10y agoYou don't have to clean up everything at once - it's possible to put items on a queue to be cleaned up when refcounts hit zero, and you can then control at what rate the queue is emptied.
- sklogic 10y agoWhich makes it already far too complicated, more complex than a real time mark&sweep. Especially if there are loop checks - you cannot just empty the queue gradually, it's all or nothing.