Skip to content

Conversation

@trustification-ci-bot
Copy link

Description

Backport of #1911 to release/0.3.z.

Copy link
Contributor

@jcrossley3 jcrossley3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May want to fix #1920 before merging this

@jcrossley3 jcrossley3 dismissed their stale review August 12, 2025 14:14

Should be fine after a rebase

  This commit significantly improves the performance of graph analysis by applying parallelization techniques to the run_graph_query and collect_graph functions.

  Previously, the collection of ancestors and descendants for a given node was performed sequentially. By refactoring run_graph_query to use futures::join!, we now process both directions concurrently, reducing the overall
  execution time.

  Building on this, the collect_graph function was optimized to process all discovered nodes in parallel using join_all. This ensures that we leverage available resources more efficiently when analyzing multiple entry points in
  the graph.

Assisted-by: Gemini
(cherry picked from commit 92cb5b6)
@dejanb dejanb force-pushed the backport-1911-to-release/0.3.z branch from 696c38e to 89779db Compare August 19, 2025 09:24
@dejanb
Copy link
Contributor

dejanb commented Aug 19, 2025

Rebased

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.

3 participants