<p><a href="https://github.com/kugel-" class="user-mention">@kugel-</a> not <em>another</em> file saving method ;-P</p>

<p>Certainly the GIO based method could use <code>g_file_replace_async</code> instead, and the plain file write method could be re-written to be async, but <code>g_file_set_contents()</code> is not ours to change, and its the default IIRC.</p>

<p>Once we had the buffer copy we could spawn the plain file write or <code>g_file_set_contents</code> methods as separate threads.</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/issues/828#issuecomment-166737645">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4NQrB5puhJIKDkf7k-X5jfyzvu-ks5pSbsfgaJpZM4G3UHR.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/issues/828#issuecomment-166737645"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>