[bisq-network/bisq] Improve DAO state management (Issue #5783)

chimp1984 notifications at github.com
Thu Oct 28 01:45:01 CEST 2021


Found an interesting approach using MappedByteBuffer. 
https://blogs.oracle.com/javamagazine/post/creating-a-java-off-heap-in-memory-database

Still heavy work in progress but got all blocks stored in that MappedByteBuffer as individual records. Reading of all live blocks takes 1.5 sec instead of about 5-8 sec for the DaoState. Write takes about 1 ms, remaining daoState data is about 18MB and takes abotu 300 ms. But still much faster than with all blocks in the daoState which took about 5-8 sec.

Have not seen yes how much it improves with memory usage, but as we do not clone the large daoState anymore but unly the 18MB data + the blocks since the last write, I guess it will have some positive impact.


-- 
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/issues/5783#issuecomment-953388766
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211027/b3559920/attachment.htm>


More information about the bisq-github mailing list