mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
malloc trim once orderbook update finished
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <xrpld/core/JobQueue.h>
|
||||
|
||||
#include <xrpl/basics/Log.h>
|
||||
#include <xrpl/basics/MallocTrim.h>
|
||||
#include <xrpl/protocol/Indexes.h>
|
||||
|
||||
namespace ripple {
|
||||
@@ -154,6 +155,8 @@ OrderBookDB::update(std::shared_ptr<ReadView const> const& ledger)
|
||||
}
|
||||
|
||||
app_.getLedgerMaster().newOrderBookDB();
|
||||
|
||||
mallocTrim(std::optional<std::string>("OrderBookUpdate"), j_);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user