Skip to content

perf(exec): parallelize ArticleRank on ComputePool (#500) - #603

Merged
DecisionNerd merged 5 commits into
mainfrom
cursor/500-parallel-article-rank-c6a4
Aug 12, 2026
Merged

DecisionNerd merged 5 commits into
mainfrom
cursor/500-parallel-article-rank-c6a4

Conversation

@DecisionNerd

@DecisionNerd DecisionNerd commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements #500: parallel ArticleRank destination-owned updates on the instance-owned ComputePool with measured crossover and bit-identical fingerprints.

Closes #500

Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Note

Parallelize ArticleRank execution on the instance-owned compute pool

  • Adds a destination-owned pull accumulation path for ArticleRank using a prebuilt inbound CSR, replacing the previous push-based source iteration.
  • Selects the parallel path when compute_threads > 1, a compute pool is present, and the graph has ≥131,072 edges; otherwise falls back to serial.
  • Serial path checkpoints every 4,096 destinations (previously every 1,024 edges); parallel path uses a shared AtomicUsize for periodic cancellation checks.
  • Worker panics in the parallel path are caught via catch_unwind and surfaced as a structured AlgorithmError with a stable message.
  • Behavioral Change: serial cancellation checkpoint cadence changes from edge-count-based (1,024 edges) to destination-count-based (4,096 destinations).

Macroscope summarized b399e4a.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 7 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b0e2a8a6-28e2-41e5-a93c-9eaeb6b6fade

📥 Commits

Reviewing files that changed from the base of the PR and between 968e4ed and a33df61.

⛔ Files ignored due to path filters (3)
  • docs/book/architecture/algorithms.md is excluded by !**/*.md, !**/docs/**
  • docs/development/execution-resource-policy.md is excluded by !**/*.md, !**/docs/**
  • docs/reference/api.md is excluded by !**/*.md, !**/docs/**
📒 Files selected for processing (3)
  • crates/graphforge-exec/src/algorithm_dispatch.rs
  • crates/graphforge-exec/src/algorithm_rank.rs
  • crates/graphforge-exec/src/compute_pool.rs

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added executor Changes to query executor core Core source code changes documentation Improvements or additions to documentation labels Aug 10, 2026
@blacksmith-sh

This comment has been minimized.

@DecisionNerd
DecisionNerd force-pushed the cursor/500-parallel-article-rank-c6a4 branch from c884942 to e21b99a Compare August 11, 2026 23:09
@DecisionNerd
DecisionNerd marked this pull request as ready for review August 11, 2026 23:09
@DecisionNerd
DecisionNerd force-pushed the cursor/500-parallel-article-rank-c6a4 branch from e21b99a to b399e4a Compare August 11, 2026 23:48
@github-actions github-actions Bot added testing Test coverage and testing infrastructure ci-cd CI/CD configuration changes labels Aug 11, 2026
@DecisionNerd
DecisionNerd marked this pull request as draft August 12, 2026 01:05
cursoragent and others added 5 commits August 11, 2026 20:55
Co-authored-by: David Spencer <DecisionNerd@users.noreply.github.com>
Co-authored-by: David Spencer <DecisionNerd@users.noreply.github.com>
Co-authored-by: David Spencer <DecisionNerd@users.noreply.github.com>
Co-authored-by: David Spencer <DecisionNerd@users.noreply.github.com>
Co-authored-by: David Spencer <DecisionNerd@users.noreply.github.com>
@DecisionNerd
DecisionNerd marked this pull request as ready for review August 12, 2026 02:55
@DecisionNerd
DecisionNerd force-pushed the cursor/500-parallel-article-rank-c6a4 branch from b399e4a to a33df61 Compare August 12, 2026 02:55
@DecisionNerd
DecisionNerd merged commit 7e5733a into main Aug 12, 2026
22 checks passed
@DecisionNerd
DecisionNerd deleted the cursor/500-parallel-article-rank-c6a4 branch August 12, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD configuration changes core Core source code changes documentation Improvements or additions to documentation executor Changes to query executor testing Test coverage and testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(exec): polish scale/performance for rank(by="article_rank")

2 participants