Enhance PrefetchCache functionality and improve project file prefetching

- Updated the `PrefetchCache` structure to include metadata about whether paths are files or directories, optimizing the cache's utility during VFS operations.
- Refactored the `prefetch_project_files` function to accept a `Project` object, allowing for more flexible path collection and improved logging of the prefetching process.
- Added tests to validate the behavior of the prefetch cache, ensuring correct handling of file reads, canonicalization, and cache depletion scenarios.
- Enhanced existing tests to cover new functionality, including concurrent reads and stress tests for snapshot determinism.

These changes aim to improve the performance and reliability of the VFS by refining the prefetching mechanism and ensuring accurate metadata handling.
This commit is contained in:
Joe 2026-02-19 02:26:04 -06:00
parent 9d3d02cd57
commit 0462b91a6c
6 changed files with 590 additions and 32 deletions

View file

@ -131,10 +131,10 @@ impl InitCommand {
("core.autocrlf", "false"),
("core.eol", "lf"),
("core.safecrlf", "false"),
("core.splitIndex", "true"),
// ("core.splitIndex", "true"),
// ("core.fsmonitor", "true"),
("core.untrackedcache", "true"),
("feature.manyFiles", "true"),
// ("core.untrackedcache", "true"),
// ("feature.manyFiles", "true"),
] {
let _ = Command::new("git")
.args(["config", "--local", key, value])