Skip to content

Conversation

@chenyukang
Copy link
Collaborator

@chenyukang chenyukang commented Dec 10, 2025

This PR try to reduce the call numbers of find_path.

  • Add payment_find_path_stats to track the number of inner_find_path.
  • inner_find_path now support to find the max single path for a target, so that we can avoid to do meanless searching when the result determined to be fail.
  • When we get a router with mid amount, try to extend it to large amount with cheaper checking, to reduce the number of invocation of inner_find_path with exploring all the whole graph.

@chenyukang chenyukang force-pushed the find-path-perf-2 branch 2 times, most recently from bf97dce to b045b86 Compare December 10, 2025 09:25
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.

2 participants