<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 2:28 PM, Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>&gt;</span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"> <span style="color:rgb(34,34,34)">I notice for starters that you #zapMVCProjects _after_ unloading ST80.</span></div>
</div>
Did you move that specifically, or was that just happenstance from<br>
folding #unloadReloadablePackages into the shrink script?<br></blockquote><div><br></div><div>No, I think the zapping happens while ST80 is still there. I moved the list of packages to unload to the top, but left the actual unloading in place.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regarding this guy:<br>
<br>
  names do: [:pkgName | (PackageInfo named: pkgName) classes do: [:ea<br>
| ea unload]].<br>
  names do: [:pkgName | Installer mc unload: pkgName].<br>
<br>
That&#39;s pretty much what I was thinking of doing inside MC&#39;s<br>
#basicLoad. I hesitated because it involves sending #unload twice to<br>
every class, and doubted whether general implementations of #unload<br>
were idempotent.<br>
<br>
But I guess it must have worked out OK for you during the script?<br></blockquote><div><br></div><div>It seems to. But I thought the problem was that #unload has no effect, because the method has been removed by the time message is sent, and we fall back to the superclass noop. I originally had one loop the first sent #unload to all classes, than unloaded the package, but I found that was more sensitive to the order of the package names. The unload method would fail because it depended on something that&#39;s already gone. Two loops seems more robust. </div>
<div><br></div><div>I&#39;m still working on it—down to about 10MB now. Will post again when I declare victory.</div><div><br></div><div>Colin</div></div><br></div></div>