<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 11, 2020 at 5:19 PM Chris Muller <<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Eliot, may I recommend the "flat-line your image" hot key?  It's<br>
really useful for that and other use cases like debugging shutdown<br>
code, or when Morphic gets slammed with events due to a bug that<br>
disrupts the UI.  It calls Smalltalk quitPrimitive, so skips all<br>
shutdown processing and logging.  It's one of the global command keys,<br>
Cmd+Shift+_.<br></blockquote><div><br></div><div>Thanks.  However quitting via quitPrimitive is a bad idea.  Soon enough we will have a system with ephemerons around files and could expect file vuffers etc to be flushed before exit.  So we will want to run pending finalization actions, etc.  exiting via the quit primitive without running these activities could well break some applications.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Another tip to avoid git fake dirty .changes file is, upon launching<br>
the image, immediately Save as... a "_test" image that'll be excluded<br>
from your repository.<br></blockquote><div><br></div><div>Not the use case I'm thinking of.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
With those two easily-accessible paths to a non-logging exit for the<br>
user, I hope we won't rush into changing the logging of<br>
exit-without-save.  That's a pretty legacy feature that I do use<br>
occasionally to help me keep track of which images I'm looking at,<br>
without wanting to change their .image file timestamp.<br></blockquote><div><br></div><div>OK, I abandon the idea.  Forget I said anything.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">That SoundPlugin one does sound like one to optimize, but for the<br>
Form, I think you want that processing because it's about what bits<br>
you want to record in the image file, regardless whether continuing<br>
the session.<br></blockquote><div><br></div><div>No, the Form thing is compressing forms so they take less space in the image file.  A complete waste of time if one is merely quitting.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
<br>
<br>
<br>
<br>
 - Chris<br>
<br>
On Fri, Sep 11, 2020 at 12:27 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
>     there are a handful of issues on quitting, especially quitting without saving, that bother me.  I'm not suggesting we fix these right away but I do want to put them on the list to be fixed.  Fast system startup and exit are important, especially in a scripting context.<br>
><br>
> The first is that I *hate* the QUIT/NO SAVE notice being written to the changes file.  This seems entirely unnecessary.  Why if one enters the image, doesn't do anything and then quits, must the changes file be written to?  This causes minor pain when one has an image/changes under git and one has to revert the changes occasionally (but not the image).<br>
><br>
> Another issue is that we waste time shutting down the SoundPlugin via primSoundStop in stopPlayerProcess, whether the SOundPlugin is loaded or not.  So what happens is that the Vm loads the SoundPlugin just to turn it off.  A waste of effort.  We could check whether the plugin has been loaded first.<br>
><br>
> Similarly, Symbol class>>shutDown: anf Form class>>shutDown: do unnecessary processing if the system is just exiting, and not snapshotting and then exiting.<br>
> _,,,^..^,,,_<br>
> best, Eliot<br>
><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" 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>