<p>The point of not doing it when you type is that if you're actively typing enough and parsing would happen to be slow enough for you to notice (unlikely, but well), it seemed better to keep typing responsive instead of symbol updating -- which you're probably not looking at if you're typing so actively anyway.</p>

<p>So, yeah, <code>g_source_remove()</code> is possibly slow, but we never encountered a situation where it was <em>noticeably</em> slow, so I didn't bare.  Possibly if we're worried, we could create a <code>GSource</code> explicitly and attach/detach it at will, not sure.</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/geany/geany/commit/ec4a5ea4f92f337d97b3ab2abae88e4ebf95d777#commitcomment-18715202">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzmLb1x8_efag3mgo_-KW7xqJ2voks5qh3EkgaJpZM4JjiL0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9303BbTr3ppc9Q8zNdWQPGVGhLYks5qh3EkgaJpZM4JjiL0.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/commit/ec4a5ea4f92f337d97b3ab2abae88e4ebf95d777#commitcomment-18715202"></link>
  <meta itemprop="name" content="View Commit"></meta>
</div>
<meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@b4n on ec4a5ea: The point of not doing it when you type is that if you're actively typing enough and parsing would happen to be slow enough for you to notice (unlikely, but well), it seemed better to keep typing responsive instead of symbol updating -- which you're probably not looking at if you're typing so actively anyway.\r\n\r\nSo, yeah, `g_source_remove()` is possibly slow, but we never encountered a situation where it was *noticeably* slow, so I didn't bare.  Possibly if we're worried, we could create a `GSource` explicitly and attach/detach it at will, not sure."}],"action":{"name":"View Commit","url":"https://github.com/geany/geany/commit/ec4a5ea4f92f337d97b3ab2abae88e4ebf95d777#commitcomment-18715202"}}}</script>