Incremental improvements to path finding memory usage:

* Abort background path finding when closed or disconnected
* Exit pathfinding job thread if there are no requests left
* Don't bother creating the path find job if there are no requests
* Refactor to remove circular dependency between InfoSub and PathRequest
This commit is contained in:
Edward Hennis
2022-01-26 19:41:36 -05:00
committed by Nik Bougalis
parent 4d5459d041
commit e7e672c3f8
26 changed files with 550 additions and 108 deletions

View File

@@ -223,7 +223,8 @@ checkPayment(
if (auto ledger = app.openLedger().current())
{
Pathfinder pf(
std::make_shared<RippleLineCache>(ledger),
std::make_shared<RippleLineCache>(
ledger, app.journal("RippleLineCache")),
srcAddressID,
*dstAccountID,
sendMax.issue().currency,