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

[nrf noup] settings: nvs: use dedicated lookup cache hash function #1263

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

Damian-Nordic
Copy link
Contributor

@Damian-Nordic Damian-Nordic commented Aug 1, 2023

Introduce NVS_LOOKUP_CACHE_FOR_SETTINGS Kconfig option that enables a dedicated hash function for the NVS lookup cache that takes advantage of the NVS ID allocation scheme used by the NVS settings backend. As such, this option should only be used if an application uses NVS via the settings layer.

The commit is a noup patch because the original change seems not generic enough to be accepted by the Zephyr community: zephyrproject-rtos/zephyr#61619.

@mariuszpos mariuszpos self-requested a review August 10, 2023 12:10
@LuDuda
Copy link
Contributor

LuDuda commented Aug 16, 2023

@Damian-Nordic what about to remove DNM?

@Damian-Nordic
Copy link
Contributor Author

@Damian-Nordic what about to remove DNM?

I'm OK with that but maybe we should upstream this first?

@Damian-Nordic Damian-Nordic changed the title [DNM] subsys: settings: nvs: use dedicated lookup cache hash function [nrf noup] settings: nvs: use dedicated lookup cache hash function Sep 25, 2023
@Damian-Nordic Damian-Nordic marked this pull request as ready for review September 25, 2023 14:54
@Damian-Nordic
Copy link
Contributor Author

Damian-Nordic commented Sep 25, 2023

FYI, removed DNM but only the second commit is exclusive for this PR. The first one is already upstreamed and a part of the current upmerge.

Copy link
Contributor

@LuDuda LuDuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Introduce NVS_LOOKUP_CACHE_FOR_SETTINGS Kconfig option that
enables a dedicated hash function for the NVS lookup cache
that takes advantage of the NVS ID allocation scheme used
by the NVS settings backend. As such, this option should
only be used if an application uses NVS via the settings
layer.

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
@rlubos rlubos merged commit 72fbc3c into nrfconnect:main Oct 5, 2023
10 checks passed
@Damian-Nordic Damian-Nordic deleted the nvs-settings-cache branch October 5, 2023 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants