Cleanup: do not save initial image jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 30 Dec 2016 22:42:05 +0000
branchjv
changeset 1484 cef397199379
parent 1483 87e6026f8982
child 1485 bde224d85196
Cleanup: do not save initial image Restarting from an image was always troublesome, expecially on Windows. Loading from scratch is fast enough nowadays.
smalltalk.rc
--- a/smalltalk.rc	Fri Dec 30 22:37:26 2016 +0000
+++ b/smalltalk.rc	Fri Dec 30 22:42:05 2016 +0000
@@ -827,31 +827,3 @@
     Smalltalk showSplashMessage:('done.').
   ]
 ].
-
-"/
-"/ save an initial image; this will speedup the next startup
-"/ (since all autoload-stuff will already be initialized)
-"/
-((Smalltalk commandLineArguments includes:'--quick')
- or:[(Smalltalk commandLineArguments includes:'--faststart')
- or:[(Smalltalk commandLineArguments includes:'--fastStart')
- or:[(Smalltalk isPlugin)
-]]]) ifFalse:[
-    ('st.img' asFilename exists not and:[Filename currentDirectory isWritable]) ifTrue:[
-	|doneWithStartupStuff|
-
-	doneWithStartupStuff := Semaphore new.
-
-	Smalltalk addStartBlock:[
-	    [
-		doneWithStartupStuff wait.
-		   'smalltalk.rc [info]: saving initial image for faster future startup...' infoPrintCR.
-		   ObjectMemory primSnapShotOn:'st.img'
-	    ] forkAt:1.
-	    [
-		Delay waitForSeconds:10.
-		doneWithStartupStuff signal
-	    ] forkAt:1.
-	].
-    ].
-].