1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext/fs
Divy Srivastava 078def0ff8
perf(ext/node): optimize fs.exists[Sync] (#24613)
Use `access` on *nix and `GetFileAttributesW` on Windows.

[Benchmark](https://paste.divy.work/p/-gq8Ark.js):
```
$ deno run -A bench.mjs # main (568dd)
existsSync: 8980.636629ms

$ target/release/deno run -A bench.mjs # this PR
existsSync: 6448.7604519999995ms

$ bun bench.mjs
existsSync: 6562.88671ms

$ node bench.mjs
existsSync: 7740.064653ms
```

Ref https://github.com/denoland/deno/pull/24434#discussion_r1679777912
2024-07-17 18:05:51 +05:30
..
30_fs.js fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
Cargo.toml chore: forward v1.45.2 release commit to main (#24564) 2024-07-12 18:05:45 -04:00
clippy.toml refactor(ext/fs): deno_fs::FileSystem - conditional Send + Sync (#18993) 2023-05-08 11:02:02 -04:00
in_memory_fs.rs fix(node): Implement fs.lchown (and process.getegid) (#24418) 2024-07-05 18:32:51 +00:00
interface.rs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
lib.rs refactor: move PackageJson to deno_config (#24348) 2024-06-26 21:24:10 +00:00
ops.rs fix(ext/node): lossy UTF-8 read node_modules files (#24140) 2024-06-08 18:36:13 +02:00
README.md refactor: Add "deno_fs" extension crate (#18040) 2023-03-07 18:13:44 +09:00
std_fs.rs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
sync.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00

deno_fs

This crate provides ops for interacting with the file system.