<div dir="ltr">Hi Tim, Hi Tim,<div><br></div><div>    TIM R, I finally looked at the plugin code and the primitive has been there since it was contributed by &quot;monty&quot; in September of 2015.</div><div><br></div><div>It&#39;s called primitiveFileSync; use as you would for primitiveFileFlush.  So no need to change the VM, but it would be easy to implement such that a command line argument made sqFileFlush call swFileSync.<br></div><div><br></div><div>Tim F, I note that in platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c sqFileFlush is already implemented as sqFileSync.  Isn&#39;t this an error?  Shouldn&#39;t we remove the call and simply make sqFileFlush empty on win32?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 21, 2016 at 11:44 AM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On 21-05-2016, at 11:02 AM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt; Well, the case is that it /is/ a performance issue.  Writing to disc is way more expensive than flushing to kernel buffers.  How about saying what you think about my c) and d) options?  That&#39;s a way of avoiding the performance issue and solving the kids-are-humans issue.<br>
<br>
</span>Either would be just fine by me, no problem. Adding a new prim might be even better since it would defer control up to the image, which always seems the best option to me. However, opening the can of rancid worms that is the file system interface doesn’t appeal too much right now. I think for simplicity and testing I’ll stick with a #define and we can revisit it later if it seems to solve any realworld problems.<br>
<span class=""><br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
</span>Useful random insult:- Got into the gene pool while the lifeguard wasn&#39;t watching.<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div>