bisq/core/src
Steven Barclay 914d75682c
Cache enum.values() in ChartCalculations & TradeStatistics3
Cache enum arrays 'TickUnit.values()' & 'PaymentMethodWrapper.values()'
as the JVM makes defensive copies of them every time they are returned,
and they are both being used in tight loops. In particular, profiling
suggests this will make 'TradeStatistics3.isValid' about twice as fast.
2023-05-10 19:41:22 +01:00
..
main Cache enum.values() in ChartCalculations & TradeStatistics3 2023-05-10 19:41:22 +01:00
test Avoid exception to speed up TradeStatistics3.isValid 2023-05-10 19:40:19 +01:00