-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph pruning #521
Graph pruning #521
Conversation
Codecov Report
@@ Coverage Diff @@
## master #521 +/- ##
==========================================
- Coverage 91.23% 91.22% -0.01%
==========================================
Files 36 36
Lines 2258 2269 +11
Branches 287 290 +3
==========================================
+ Hits 2060 2070 +10
Misses 150 150
- Partials 48 49 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left tiny comments. Looks very good. I like the performance test
It showed in raiden-network#520 that in bigger token networks the search was blocking the PFS for longer intervals. The main reason for that was that the path finding was trying many routes where participants were offline. This can easily be improved by pruning the graph on unreachable nodes before the routing, so that the graph on which the search is done consists only of reachable nodes. This can be improved further in the future by also pruning channels with to little capacity, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
It showed in #520 that in bigger token networks the search was blocking
the PFS for longer intervals. The main reason for that was that the path
finding was trying many routes where participants were offline.
This can easily be improved by pruning the graph on unreachable nodes
before the routing, so that the graph on which the search is done
consists only of reachable nodes.
This can be improved further in the future by also pruning channels with
to little capacity, etc.
Fixes #520