mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
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:
parent
9d3d02cd57
commit
0462b91a6c
6 changed files with 590 additions and 32 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue