GNOME Bugzilla – Bug 659738
Need a way to tell GSettings to delay writes for rapidly changing properties
Last modified: 2013-10-24 19:34:10 UTC
When binding GSettings keys to rapidly changing properties (like "value" on GtkAdjustment's), a write is performed for every change. Talking with Ryan, he suggested having a flag (_RATE_LIMIT) to allow apps to specify writes to be performed somewhat delayed, or maybe apply the rate limit by default and have a flag to turn it off.
i started implementing this, but it's slightly weird -- the app could exit while rate-limited changes are pending and there's no good way to force them through. it could be done in the backend and g_settings_sync() could write them... or it could happen in the front end and g_settings_sync() is taught about it then.
bug 468121 suggests what could be a better way forward. integration of this sort of thing into various widgets would substantially improve our ability to make intelligent decisions about the correct time to do writes.
This problem is substantially solved. We never have more than 1 or 2 writes queued up at a time now.