Skip to content

Commit

Permalink
Lazy path cache (#90)
Browse files Browse the repository at this point in the history
* feat: path cache now evaluates lazily

* chore: remove redundant slab dependency

* chore: fill in missing contexts on some errors

* style: use `reserve` instead of `with_capacity` for allocating strings

* fix: fix cache clearing in `rename`, `remove_dir` and `remove_file`

* fix: fix `create_dir` implementation when some parent dirs already exist

* style: use `.iter().rev()` to reverse vector instead of `.reverse()`
  • Loading branch information
white-axe authored Jan 19, 2024
1 parent 2509af6 commit 437d5c8
Show file tree
Hide file tree
Showing 2 changed files with 303 additions and 85 deletions.
2 changes: 1 addition & 1 deletion crates/filesystem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ iter-read = "1.0.1"
async_io_stream = "0.3.3"

qp-trie.workspace = true
slab.workspace = true

[target.'cfg(windows)'.dependencies]
winreg = "0.51.0"
Expand All @@ -58,7 +59,6 @@ async-fs = "2.1.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
once_cell.workspace = true
slab.workspace = true

luminol-web = { version = "0.4.0", path = "../web/" }

Expand Down
Loading

0 comments on commit 437d5c8

Please sign in to comment.