Skip to content

deps: microStore iterator holds its segment file open - #121

Merged
mclueppers merged 1 commit into
mainfrom
deps/microstore-iterator-handle
Sep 5, 2026
Merged

deps: microStore iterator holds its segment file open#121
mclueppers merged 1 commit into
mainfrom
deps/microstore-iterator-handle

Conversation

@mclueppers

Copy link
Copy Markdown
Contributor

Records the fix now in the microStore retimesh/combined branch: the iterator reopened the segment file for every record, and on LittleFS each open replays the directory's metadata log, which grows with write activity. On the V4's 200-record path store that was 162 ms per record and a 32 s walk that tripped the task watchdog; it is now 32 ms per record and about 6 s.

Comment only — the dependency is pinned by branch, so a clean fetch already picks this up. A bench with an existing .pio/libdeps needs pio pkg update to refetch.

Records the fix now in the microStore retimesh/combined branch: the
iterator reopened the segment file for every record, and on LittleFS
each open replays the directory's metadata log, which grows with write
activity. On the V4's 200-record path store that was 162 ms per record
and a 32 s walk that tripped the task watchdog; it is now 32 ms per
record and about 6 s.

Comment only — the dependency is pinned by branch, so a clean fetch
already picks this up. A bench with an existing .pio/libdeps needs
pio pkg update to refetch.
@mclueppers
mclueppers merged commit f12d603 into main Sep 5, 2026
17 checks passed
@mclueppers
mclueppers deleted the deps/microstore-iterator-handle branch September 5, 2026 20:37
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.

1 participant