[bisq-network/bisq] Cache results of isFiatCurrency and isCryptoCurrency (#4955)

chimp1984 notifications at github.com
Tue Dec 15 15:06:39 CET 2020


@chimp1984 commented on this pull request.



> @@ -62,6 +62,10 @@ 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
+    private static final Map<String, Boolean> isFiatCurrencyMap = new HashMap<>();
+    private static final Map<String, Boolean> isCryptoCurrencyMap = new HashMap<>();

Made a commit with the suggestion

-- 
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#discussion_r543368587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201215/616d9e39/attachment.htm>


More information about the bisq-github mailing list