<p>When displaying the monthly BSQ issued series, avoid repeatedly calling <code>DaoFacade.getBlockTime</code> for Issuance objects with the same chain height, as that method linearly scans the entire linked list of <code>DaoState</code> blocks, making it quite slow. Instead, memoise the mapping from chain height to block-time month, so that it is only computed once per graph point instead of once for every BSQ issuance.</p>
<p>Also do some minor cleanup of <code>SupplyView</code>, including a compilation error flagged incorrectly by IntelliJ, caused by the raw typed constructor reference <code>XYChart.Data::new</code>.</p>
<p>--</p>
<p>Repeatedly switching to the <em>BSQ Supply</em> tab under <em>Facts & Figures</em> revealed the following minor hotspot in JProfiler (fixed by the above):</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/54855381/74124381-0e15ad00-4bca-11ea-8017-d38a88ea8be8.png"><img src="https://user-images.githubusercontent.com/54855381/74124381-0e15ad00-4bca-11ea-8017-d38a88ea8be8.png" alt="Screenshot from 2020-02-10 05-55-53" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/bisq-network/bisq/pull/3956'>https://github.com/bisq-network/bisq/pull/3956</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Do some minor tidying of DAO SupplyView</li>
  <li>Memoise block times to speed up display of BSQ issued graph</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/bisq-network/bisq/pull/3956/files#diff-0">desktop/src/main/java/bisq/desktop/main/dao/economy/supply/SupplyView.java</a>
    (82)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/bisq-network/bisq/pull/3956.patch'>https://github.com/bisq-network/bisq/pull/3956.patch</a></li>
  <li><a href='https://github.com/bisq-network/bisq/pull/3956.diff'>https://github.com/bisq-network/bisq/pull/3956.diff</a></li>
</ul>

<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/pull/3956?email_source=notifications&email_token=AJFFTNQKFKNCPNX2PIBVVNDRCDUMZA5CNFSM4KSIBDVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMEVRZA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQVFKQRCBR55RE5MP3RCDUMZANCNFSM4KSIBDVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNVSZ7AJKWZVBRM6WTLRCDUMZA5CNFSM4KSIBDVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMEVRZA.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/pull/3956?email_source=notifications\u0026email_token=AJFFTNQKFKNCPNX2PIBVVNDRCDUMZA5CNFSM4KSIBDVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMEVRZA",
"url": "https://github.com/bisq-network/bisq/pull/3956?email_source=notifications\u0026email_token=AJFFTNQKFKNCPNX2PIBVVNDRCDUMZA5CNFSM4KSIBDVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMEVRZA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>