"Finding cycles" is not really the problem a GC is trying to solve. It's trying to find all of the non-reachable data, across a possibly cyclic graph. It just has to ensure that it doesn't loop infinitely while traversing that graph.
Re:ORC – Nim's new memory managment
by magicalhippo on Wednesday December 09, 2020 @02:30AM
(#25356222)
And that would be the reminder not to post before breakfast :)
Still, fun algorithm.
Re:ORC – Nim's new memory managment
by throwaway_pdp09 on Wednesday December 09, 2020 @05:30AM
(#25357206)
I purposefully used the word 'efficient' in my original post. Of course you can find cycles many ways, but floyd's (or similar) are not acceptably fast and never can be in general.
[1]: https://en.wikipedia.org/wiki/Cycle_detection#Floyd.27s_Tort...