Repository navigation
perf(#10013): VertexIteratorFilter.next() hands out the record hasNext() already looked up - #10014
Conversation
…t() already looked up Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q8bTVHrrsuZDoTAQgQbLBS
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
@claude review |
|
Claude finished @robfrank's task in 17s —— View job Review of #10014I read the two main-code changes and checked them against the rest of the iterator code. I didn't compile or run the tests, and I didn't read the new test file in detail. Verdict: looks good, no blocking issues. Correctness
Minor, non-blocking
Tests Approve from my side. I can't submit a formal approval. |
Fixes #10013.
IteratorFilterBase.hasNextloads the neighbour's record only to validate the RID, andVertexIteratorFilter.nextloaded it again. The record fromhasNextis now kept and handed out when it is aVertexwith the same RID; otherwisenextdoes the old lookup. The answers do not change.Measured on the undirected openCypher graph queries of the benchmark (LDBC SF1 persons and KNOWS): top degree 0.888 [0.872, 0.901] on JDK 25 (10 clean pairs) and 0.897 [0.878, 0.916] on JDK 21 (15 pairs), degree distribution 0.887 and 0.893, the two other queries 0.94 to 0.96; the plain scan control and an A against A run show no difference. Tables and the program are in #10013.
Tests:
VertexIteratorSingleLookupTestfails on the base and passes with the change, and the 133 tests of the ten graph test classes that exercise the iterators pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q8bTVHrrsuZDoTAQgQbLBS
Summary by CodeRabbit