<p>OK, while motivated, I created this patch - hopefully the last of the performance ones. Apart from </p>

<p><a href="https://github.com/geany/geany/pull/475#issuecomment-98514145" class="issue-link" title="Reload tooltip in the symbol tree also on tag update">#475 (comment)</a></p>

<p>which I don't know how to fix easily, I'm not aware of any other N^2 complexity in Geany.</p>

<p>The sample file from</p>

<p><a href="https://github.com/geany/geany/issues/791#issuecomment-162725385" class="issue-link" title="Parsing long files">#791 (comment)</a></p>

<p>can be used to test this (but the number of the lines has to be increased to several thousands to see the effect).</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/pull/797#issuecomment-164170768">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4ha9KMHfoX_agU5vvc6kGqq-0wKks5pPFL5gaJpZM4G0Ju3.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/pull/797#issuecomment-164170768"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>