[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature in planning stages: Sands of Time



Sounds like a good idea to add checkpointing.

Here are some ideas after reading your notes:

- Aren't your disk writes atomic? Then you can make your checkpoint only
after a write is completed, and never in-between.

- Concerned about too many checkpoints stored in the JVM heap? Why not use
LRU and discard the oldest checkpoints, or allow the user to write some of
the oldest ones to disk.

- Allow automatic checkpointing after a certain interval, say every 5
seconds, or every minute.

- It seems like the amount of state you'd need to keep track of is
essentially just: CPU and flags, RAM, soft-switches, and peripheral cards.
If these are all Java objects, they should be fairly simple to serialize for
storage.

-- 
]DF$
Apple II Book: http://macgui.com/newa2guide/
Apple II Archive: http://macgui.com/vault/
Apple II Web & Blog hosting: http://a2hq.com/