<p>Thanks for the feedback.</p>

<p>I changed the document referencing to IDs as suggested.</p>

<p>Refreshing the treeview with about 5000 markers set takes about 40-50ms with de- and reattching the model. Without detaching, refreshing takes about 60-70ms, on my machine.<br>
So it is actually not that big difference and I doubt users will click that many markers. I cheated a bit by programatically setting them on startup :).</p>

<p>So, as the difference is actually not really big, I removed commit <a href="https://github.com/geany/geany-plugins/commit/0d130be42b3e7968c597c85a1782b1e34d69d5a8" class="commit-link"><tt>0d130be</tt></a>. However, I could not notice any flickering, with or without the commit.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/284#issuecomment-141519831">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7HlUL2hEeF7wlv3I-3dwLCc1_BPks5ozEe_gaJpZM4F-upi.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/284#issuecomment-141519831"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>