1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/ext
Divy Srivastava 3628895471
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-22 22:47:08 +02:00
..
broadcast_channel 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
cache 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
canvas 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
console 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
cron 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
crypto 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
fetch Revert "refactor(fetch): reimplement fetch with hyper instead of reqwest (#24237)" (#24574) 2024-07-22 22:46:39 +02:00
ffi 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
fs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-22 22:47:08 +02:00
http 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
io 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
kv fix(docs): fix some deno.land/manual broken urls (#24557) 2024-07-22 22:46:39 +02:00
napi 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
net 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
node perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-22 22:47:08 +02:00
tls 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
url 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
web 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
webgpu 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
webidl 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
websocket 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00
webstorage 1.45.2 (#24561) 2024-07-12 16:04:46 -04:00