<div>Mikhail&#39;s original question was about loading interface files for entire packages with mmap.</div><div><br></div>As a wild thought experiment, if GHC had a saved-heaps capability, I believe that would avoid the Unique issues with mmap&#39;ing individual data structures that Simon mentioned.  How about if each whole-package interface were then a GHC saved heap that, when booted, would become an &quot;interface&quot; server that would communicate with, and be shared by, other GHC build server processes.<div>

<div><br></div><div>  -Ryan</div><div><br><div><br></div><div><div class="gmail_quote">On Fri, Apr 27, 2012 at 4:57 AM, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com" target="_blank">marlowsd@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">On 26/04/2012 23:32, Johan Tibell wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Apr 26, 2012 at 2:34 PM, Mikhail Glushenkov<br>
&lt;<a href="mailto:the.dead.shall.rise@gmail.com" target="_blank">the.dead.shall.rise@gmail.com</a><u></u>&gt;  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks. I&#39;ll look into how to optimise .hi loading by more traditional<br>
means, then.<br>
</blockquote>
<br>
Lennart is working on speeding up the binary package (which I believe<br>
is used to decode the .hi files.) His work might benefit this effort.<br>
</blockquote>
<br></div>
We&#39;re still using our own Binary library in GHC.  There&#39;s no good reason for that, unless using the binary package would be a performance regression. (we don&#39;t know whether that&#39;s the case or not, with the current binary).<br>


<br>
Cheers,<br>
        Simon<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.<u></u>org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/glasgow-<u></u>haskell-users</a><br>
</div></div></blockquote></div><br></div></div></div>