Skip to content

[COLLECTIONS-905] Traverse nested chained iterables iteratively - #761

Open
rishabhdaim wants to merge 1 commit into
apache:masterfrom
rishabhdaim:codex/COLLECTIONS-905-standalone
Open

rishabhdaim wants to merge 1 commit into
apache:masterfrom
rishabhdaim:codex/COLLECTIONS-905-standalone

Conversation

@rishabhdaim

@rishabhdaim rishabhdaim commented Nov 26, 2026 •

Copy link
Copy Markdown

Traverse directly nested iterable views without recursion or duplicate polling. Open sources on demand and retry a failed open without skipping the source.

The full Maven build passed on Java 21 with 22,552 tests reported, 82 skipped, and no failures.

JMH 1.37 on Java 21

Workload Direct walker Delegation to #758
Two appends to three values 83 ns/op · 144 B/op 138 ns/op · 392 B/op
8 layers, 10,000 values 44.2 µs/op · 601 B/op 113 µs/op · 1,251 B/op
4,096 layers, 10,000 values 157 µs/op · 229 kB/op 282 µs/op · 542 kB/op

The walker opens only leaf iterators. Delegation creates an iterator chain for each nested view.

COLLECTIONS-905 · OAK-12532

OpenAI Codex assisted with the implementation, tests, and benchmarks.

Open source iterators on demand, avoid duplicate polling, and retry a failed source open without skipping it. Cover stack safety and measure nested iterable traversal.

Assisted-By: OpenAI Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant