This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12361 - Smart settings_load_config() so it only does setting_apply() if required
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Tuesday, 01 November 2011, 11:49 GMT+2
Opened by Jonathan Gordon (jdgordon) - Tuesday, 01 November 2011, 11:49 GMT+2
|
Detailsin svn settings_apply() is called whenever a config is loaded (after boot) regardless of what is in the file. even an empty one will cause a full settings_apply() (which is slow, causes disk access and will stop music thanks to the buflib users).
This patch will apply settings individually if they have a callback registered, and if no settings without a callback are applied it doesnt bother calling settings_apply(). |
This task depends upon
In my opinion, avoiding music interruption due to buflib is far more important than the tiny speedup. However, I'm not sure when this would help now. It seems settings_apply_skins() causes the interruption, and it's conditional on theme_changed.
I'm attaching a resynced patch. I did not try 0002-Move-to-fast_readline.patch because it is harder to resync.