sesame: @aliou/sesame@0.10.0
Minor Changes
-
84d611e: Fix high CPU in
sesame watchcaused by repeated full-directory re-indexing and redundant file I/O:- Add
readFirstLineutility that reads only the first 4 KiB of a file instead of loading the entire contents into memory. - Fix
PiParser.canParse()to usereadFirstLineinstead of reading the whole file just to check the header. - Fix indexer mtime-skip path to use
readFirstLineinstead ofreadFileSyncof the entire file. - Add
indexFile(db, filePath)for targeted single-file re-indexing without scanning the whole directory. - Watch handler now does per-file debounce and targeted indexing for
.jsonlchanges, falling back to full scan only when no filename is available. - Queue adds
SourceConfig.filesfor targeted paths,mergeSource()to coalesce pending work, and a 2 s cooldown between consecutive indexing runs to prevent back-to-back re-indexes when Pi keeps appending to the active session.
- Add