[bisq-network/bisq] Cache results of isFiatCurrency and isCryptoCurrency (#4955)
sqrrm
notifications at github.com
Tue Dec 15 23:19:05 CET 2020
@sqrrm approved this pull request.
utACK on the changes
> @@ -62,6 +62,14 @@ public static void setup() {
private static String baseCurrencyCode = "BTC";
+ // Calls to isFiatCurrency and isCryptoCurrency are very frequent so we use a cache of the results.
+ // The main improvement was already achieved with using memoize for the source maps, but
+ // the caching still improves performance by about 20% for isCryptoCurrency and about 100%
100% improvement sounds wrong, 10%?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4955#pullrequestreview-552971217
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201215/814c3c6e/attachment.htm>
More information about the bisq-github
mailing list