<p>I believe the biggest bottleneck in <code>saveToFile</code> (at least from what I've seen using sampling mode in JProfiler) is the <code>FileDescriptor::sync</code> call to try to force a write to disc, rather than protobuf conversion during persistence. I'm not sure if that's actual CPU usage though.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/4003?email_source=notifications&email_token=AJFFTNTCLIUNSWW7KACIGC3RFZCI5A5CNFSM4K2ISPG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXTOQY#issuecomment-594491203">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTY5XGC7JKRXIAACITRFZCI5ANCNFSM4K2ISPGQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNSNZXO5PFR6VCHKXMDRFZCI5A5CNFSM4K2ISPG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXTOQY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/4003?email_source=notifications\u0026email_token=AJFFTNTCLIUNSWW7KACIGC3RFZCI5A5CNFSM4K2ISPG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXTOQY#issuecomment-594491203",
"url": "https://github.com/bisq-network/bisq/issues/4003?email_source=notifications\u0026email_token=AJFFTNTCLIUNSWW7KACIGC3RFZCI5A5CNFSM4K2ISPG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENXTOQY#issuecomment-594491203",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>