Skip to content

Commit 9781a69

Browse files
Simplify Cursor with direct pointer manipulation
Replace the 7-variant Phase state machine with a simpler 3-state enum and raw pointer traversal. The new Cursor operates on the linked list in-place instead of detaching visited nodes into a "past" accumulator and reattaching on Drop. Also fixes a minor bug in previous impl and adds a regression test.
1 parent 0444cd4 commit 9781a69

5 files changed

Lines changed: 332 additions & 393 deletions

File tree

0 commit comments

Comments
 (0)