Skip to content

Commit b36f5f2

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 b36f5f2

5 files changed

Lines changed: 329 additions & 393 deletions

File tree

0 commit comments

Comments
 (0)