[Vm-dev] faster snapshot support in VM?

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Jul 16 23:36:45 UTC 2009


In recent pharo thread
[Pharo-project] Save and quit vs. Save - a clue to performance???
it is said that saveAndQuit is amazingly fast, while save is damned slow...
... because it goes through all image startup.
Cloning the vm/image could be more efficient:

primFork
  "return true if we are in the forked image, false in the original"

  <primitive: XXX>
   self error: 'fork failed'

snapshot
  self primFork ifTrue: [
      self aboutToSnapshot.
      self primSaveAndQuit.
      self returnFromSnapshot].

Apart being dependent on another feature of the OS, do you know any
reason why this would not work?


PS: sorry if double posting, I clicked on wrong vm-dev address first time


More information about the Vm-dev mailing list