Skip to content

feat(kvdb): cache the used area end in the sector info cache - #432

Merged
armink merged 1 commit into
armink:masterfrom
xidongxu-xfaith-tech:cache_optimize
Oct 27, 2026
Merged

armink merged 1 commit into
armink:masterfrom
xidongxu-xfaith-tech:cache_optimize

Conversation

@xidongxu-xfaith-tech

Copy link
Copy Markdown
Contributor

A KV search needs empty_kv to stop early instead of reading the sector chunk by chunk up to its end, but the non-traversal path of read_sector_info() used to cache FAILED_ADDR, so the whole sector was scanned on every search until the first write. Search the used area end once there and cache it, so every later search stops at it.

A KV search needs empty_kv to stop early instead of reading the sector
chunk by chunk up to its end, but the non-traversal path of
read_sector_info() used to cache FAILED_ADDR, so the whole sector was
scanned on every search until the first write. Search the used area end
once there and cache it, so every later search stops at it.
@armink
armink merged commit 78bc176 into armink:master Oct 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants