-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Path finding standard collections (#1428)
* Replace ArrayDeque by Queue This is clearly not a hot path. This collection will have less than 10 elements and the bottleneck is rather on the dijkstra call. ArrayDeque doesn't exist in Scala 2.11 so it makes the merge to eclair-mobile more cumbersome. * Use standard Scala collections in Dijkstra Collections performance has improved greatly in Scala 2.13. This change yields a consistent 10% improvement compared to the previous implementation on my laptop based on the mainnet graph.
- Loading branch information
Showing
1 changed file
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters