mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
a489697a54
Optimise (further) the ChartCalculations methods 'getItemsPerInterval' & 'getCandleData' by replacing HashSets in the former with sorted sets, which avoids relatively expensive calls to 'TradeStatistics3.hashCode' and needless subsequent re-sorting by date in 'getCandleData'. (Forming the trade statistics into an ImmutableSortedSet, OTOH, is cheap since they are already encountered in chronological order.) Further optimise the latter by using a primitive array sort of the trade prices to calculate their median, instead of needlessly boxing them and using 'Collections.sort'. |
||
---|---|---|
.. | ||
src | ||
build.gradle |