mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-13 11:09:10 +01:00
Reduce a bottleneck in the closed-trades-view load & table scrolling, caused by a call to 'ClosedTradesManager.getNumPastTrades' for each list item displayed. This repeatedly scans the entire collection of closed trades and BSQ swap trades, in order to count all those which share a given peer node address. (Scanning the BSQ swap trades is particularly slow due to their filtering by tx confirmation status.) To this end, cache the counts of trades by peer node address with a nullable Multiset field in ClosedTradesManager & BsqSwapTradeManager, so that the trades are scanned at most once when the view loads. Add listeners to clear the respective cache when the trade list changes or the BSQ wallet txs change. |
||
---|---|---|
.. | ||
.tx | ||
src | ||
update_translations.sh |