It is mostly on change but also when SE windows get suspended. Also when a SE window is closed if it has been >20s it does get saved as a precaution. I’d need to dig in some more to see how frequently it is being saved while using the SE and trace code if warranted.
I found this much just by reviewing the code. Next is watching the file while using the SE to see how often it gets updated. Thanks, Brian On Jan 8, 2019, 1:25 AM -0600, Richard Gaskin via use-livecode <use-livecode@lists.runrev.com>, wrote: > Brian Milby wrote: > > I've looked into the pref save code and it isn't as bad as I thought. > > The file is saved regularly, but not at the interval that I thought. > > It does have a half second delay which should prevent too many file > > writes (the actual save is debounced 500ms in the future, so if > > another save request comes in then the write is delayed). I was > > thinking that it was saving much more often. > > Were you able to determine why it's saved at regular intervals as > opposed to when it changes? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > ambassa...@fourthworld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode