[bisq-network/bisq] Add a lookup cache for txOutputs (#4951)

chimp1984 notifications at github.com
Tue Dec 15 21:31:24 CET 2020


I checked how often the methods are called:
getTxOutputsByTxOutputType is called about 500 times after a few minutes and clicking 
though most DAO screens resulting in 15 sec accululated CPU time.

getTxOutput and existsTxOutput is only used form the BsqCoinSelector in edge cases, 
so only relevant for users who have BSQ in their wallet. I got existsTxOutput called 
3 times and getTxOutput called 0 times with a live app with BSQ.

So unfortunately the big improvements will not have much impact as not called often 
and the one which is called more often has not so much change. 
So not sure if the added risk and the added memory footprint by adding a cache as 
additional data structure (150k objects) are worth it. I would tend to postpone that 
improvement to find the more severe bottlenecks. (I am still a bit surprised as profiler 
reported the getTxOutputsByTxOutputType method as bottleneck)

-- 
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/4951#issuecomment-745549297
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201215/133dbd16/attachment-0001.htm>


More information about the bisq-github mailing list