mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
1. Tidy up the stream pipelines which sum over time intervals, by summing directly with a grouping collector, instead of wastefully collecting to an intermediate map of lists; 2. Move duplicate 'memoize' static method to the base class; 3. Factor out 'getDateFilteredMap' static method, to replace the repeated pattern of filtering date keys by a provided predicate and collecting into a new map; 4. Use 'Map::replaceAll' instead of the pattern: map.entrySet().forEach(e -> e.setValue(updateFn(e.getValue()))); 5. Fix a quadratic time bug in 'getBsqMarketCapByInterval' by passing an ordered map to 'issuanceAsOfDate', so that it doesn't have to repeatedly sort or linearly scan the entire keyset of time intervals, to find the latest one before the provided date. |
||
---|---|---|
.. | ||
package | ||
src | ||
build.gradle |