Skip to content
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

sys/config: Add option to skip dup check when saving values #3324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrzej-kaczmarek
Copy link
Contributor

By default value is written to config storage only if it changed since last stored value. This however requires that all stored values are read to determine last value and in case of conf_save this is done for each saved value which can take a lot of time.

This adds option to skip that dup check and simply stores new value. This results in much faster writes at the expense of load times as there are more copies of the same value stored. Also conf_save will always write all exported values so this increase number of writes to flash. However, e.g. in case of large FCB used as config storage dup check on write can take much longer than simple read or store without dup checks.

By default value is written to config storage only if it changed since
last stored value. This however requires that all stored values are read
to determine last value and in case of conf_save this is done for each
saved value which can take a lot of time.

This adds option to skip that dup check and simply stores new value.
This results in much faster writes at the expense of load times as there
are more copies of the same value stored. Also conf_save will always
write all exported values so this increase number of writes to flash.
However, e.g. in case of large FCB used as config storage dup check on
write can take much longer than simple read or store without dup checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants