mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
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:
committed by
Nik Bougalis
parent
4d5459d041
commit
e7e672c3f8
@@ -33,7 +33,8 @@ paths::operator()(Env& env, JTx& jt) const
|
||||
auto const to = env.lookup(jv[jss::Destination].asString());
|
||||
auto const amount = amountFromJson(sfAmount, jv[jss::Amount]);
|
||||
Pathfinder pf(
|
||||
std::make_shared<RippleLineCache>(env.current()),
|
||||
std::make_shared<RippleLineCache>(
|
||||
env.current(), env.app().journal("RippleLineCache")),
|
||||
from,
|
||||
to,
|
||||
in_.currency,
|
||||
|
||||
Reference in New Issue
Block a user