[bisq-network/bisq] Cache results in account witness domain (#4953)
chimp1984
notifications at github.com
Thu Dec 17 01:41:15 CET 2020
@chimp1984 commented on this pull request.
> private final Map<P2PDataStorage.ByteArray, SignedWitness> signedWitnessMap = new HashMap<>();
+
+ // The getSignedWitnessSet is called very often and is a bit expensive. We cache the result in that map but we
+ // remove the cache entry if we get a matching SignedWitness added to the signedWitnessMap.
+ private final Map<P2PDataStorage.ByteArray, Set<SignedWitness>> getSignedWitnessSetCache = new ConcurrentHashMap<>();
Agree...
--
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/4953#discussion_r544725593
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201216/804c2c53/attachment.htm>
More information about the bisq-github
mailing list