<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>How do we make that single copy thread-safe?</div><div><br></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; font-family: 'Lucida Grande'; font-size: 12px; "><div style="font-family: Helvetica; ">- Bert -</div><br class="Apple-interchange-newline"></span></div><div><div>On 21.01.2013, at 15:06, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">IMO the readOnlyCopy logic is broken. &nbsp;e should modify SourceFiles to keep a *single* read-only copy alongside each writable copy, and supply that when asked for a read-only copy. &nbsp;The read-only copy is effectively a cache. &nbsp;It needs to be flushed when a source file changes and when the image starts up. &nbsp;Again I have code for this from a modified 3.9 image if anyone is interested. &nbsp;IMO this is important.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 11:35 AM, Vaidotas Didžbalis <span dir="ltr">&lt;<a href="mailto:vaidasd@gmail.com" target="_blank">vaidasd@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; Seems instantaneous for me on Mac. Might be a platform issue? Which VM, which OS?<br>
&gt;<br>
&gt; - Bert -<br>
</div>&nbsp;Windows 7 64 bit, Cog Dec 12, 2012<br>
bottleneck in method<br>
CurrentReadOnlySourceFiles&gt;&gt;defaultAction<br>
slow part is accessing changes file:<br>
time to run: [SourceFiles second readOnlyCopy] &nbsp;is ~ 100 ms. Caching<br>
is introduced here some time after 4.1. On XP 32 bit without antivirus<br>
there is no issue.. aha, perhaps this is antivirus related. Quite<br>
common in corporate policy in environments today. Will try tomorrow to<br>
disable antivirus and report.<br>
Vaidas<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div>
<br></blockquote></div><br></body></html>