[bisq-network/bisq] Extract persistence of BSQ blocks out of DaoStateStore [5] (PR #5790)
chimp1984
notifications at github.com
Mon Nov 8 13:07:26 CET 2021
@chimp1984 commented on this pull request.
> + // 400 000
+ /* long ts = System.currentTimeMillis();
+ int size = 10000000;
+ for (int i = 0; i < size; i++) {
+ String val = String.valueOf(c * i);
+ String key = c + sep + i;
+ store.putString(key, val); //400 000
+ // log.error("write key/val {}/{}", key, val);
+ }
+
+ log.error("write took {} ms", System.currentTimeMillis() - ts);
+ ts = System.currentTimeMillis();
+ for (int i = 0; i < size; i++) {
+ String key = c + sep + i;
+ String val = store.getString(key);
+ //log.error("read key/val {}/{}", key, val);
+ }
+ log.error("read took {} ms", System.currentTimeMillis() - ts);
+ c++;*/
Ah that whole common/src/main/java/bisq/common/persistence/db/ dir should have been deleted. There is a later commit removing it... was from the MappedByteBuffer experiments.
--
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/5790#discussion_r744661917
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211108/1a8e6980/attachment.htm>
More information about the bisq-github
mailing list