Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detect cycles that are longer than one node
- previous cycle detection just did nsn == sn detection (same node cycle) - this change adds a map to store sector numbers to detect longer cycles - avoid much memory use by only storing sector numbers when we go backwards (less than). This means that a cycle isn't detected instantly, but on the second loop. This should be fine as in most cases cycles don't occur.
- Loading branch information