-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default value of Generic/AutoSaveFrequency from 30 seconds to 5 #410
Comments
Is it really 30 seconds? That seems much too frequent, and 5 seconds that much worse. I always thought the number in the dialog was in units of minutes. Other programs that have an autosave feature, such as word processors, usually default to about 10 minutes. Extremely frequent autosave will have undesirable effects on systems that spin down hard drives to save power, such as laptops. |
Such frequent autosaves would make the revert to previous save features On Mon, Mar 11, 2013 at 12:33 PM, Matthew Skala notifications@github.comwrote:
Jason Pagura |
Are we talking about the frequency that fontforge saves a backup sfd file? -v On 11 Mar 2013, at 12:33, Matthew Skala notifications@github.com wrote:
|
@mskala Yes, that's what the tooltip says - - and I think losing some battery time is much preferable to losing work, since the experience of a program losing your work makes you hate the program and not want to use it. Since these are preferences, if you prefer it to be much longer, you can do so. @vernnobile No, we are talking about the ~/.FontForge/autosave/Font-Style.asfd files that are saved in a constantly operating loop in the background, without any user action; I think you are referring to 'Saved Revisions' which is something I asked Ben to implement recently? I agree that UndoRedo actions should have a palette to browse them, please mock that up and file it as a separate issue :) |
I've filed #414 which is related to this issue |
verified in 201303/12_1745 |
@ultrasquid the Revert feature reloads the file as saved from disk, not from the autosave - the autosave is only for crash recovery. @mskala I've added this to #337 so users will be advised that the autosave is 5s, and this may effect battery life on a laptop, so they can change the value of this as needed :) |
@mskala upon reflection, I think maybe the 5s value should be in the First Run Wizard. What do you think the value SHOULD be by default? 5 mins? |
I have a few thoughts.
But I emphasize that nobody has complained about the existing 30-second setting, and that's already short enough that reducing it to 5 probably won't increase any existing hard-drive spin-up issues. |
(Reopening this so I am sure to write you back a considered response :) |
How about save snapshot in memory every 5 secs and dump to disk every 30 mins. Also catch the segfault signal so that memory snapshot can be dumped to disk on crash. 30 mins backup is practically useless. |
Saving snapshots to memory seems like it would duplicate the effect of the existing undo feature, which is like having a snapshot instantly after every change. I think in order to provide additional protection beyond what "undo" provides, regular backups must to be written to disk. As for catching segfaults, see http://thecodelesscode.com/case/60 . |
On 13 March 2013 00:26, mozbugbox notifications@github.com wrote:
This feature is about crash protection; so a snapshot in memory every 5 Also catch the segfault signal so that memory snapshot can be dumped to
You mean integrating the BreakPad crash reporter? |
Operating systems already have a feature for dumping a memory snapshot to disk when a crash occurs. It's called core dump, and it hasn't been popular in decades, but it still exists as an option (at least in Linux) and it doesn't require any application support. Core dump can be enabled with the ulimit command (for anything, not just FontForge) and may be useful for debugging. It doesn't allow you to start up again and pick up from where you were before the segfault, but I don't see how we could build one that would allow such a thing... if the process could continue, there wouldn't be a segfault. |
What I meant was to snapshot the .sfd data to the memory instead of the hard drive. And dump that data to hard drive in case of crash. You can also CRC the data if you are worrying about data corruption. |
On the list @mskala wrote: On Wed, 13 Mar 2013, Dave Crossland wrote:
It seems to me that if we would consider 5 seconds, then there's not much
I had a script that called Save() after every cut and paste operation My favourite option remains the one I describe in my comment on issue Do we really think that purely random unpredictable crashes are all that I don't want to wait the time it takes to write the entire font to disk |
"save a short time after the last edit, or a longer time after the last save, whichever is earlier" sounds good to me |
The AutoSaveFrequency is 30 seconds, and a lot can change in 30 seconds, so change it to 5 seconds so that very little work is lost.
The text was updated successfully, but these errors were encountered: