1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/ext/node/ops
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
..
crypto fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
os fix: Add sys permission kinds for node compat (#24242) 2024-07-10 15:15:43 +02:00
zlib feat: upgrade deno_core (#24364) 2024-07-01 15:48:52 -07:00
blocklist.rs fix(ext/node): handle prefix mapping for IPv4-mapped IPv6 addresses (#24546) 2024-07-12 14:25:17 +05:30
buffer.rs feat(node): buffer isUtf8/isAscii (#23928) 2024-05-21 15:50:59 -07:00
fs.rs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
http.rs Revert "refactor(fetch): reimplement fetch with hyper instead of reqwest (#24237)" (#24574) 2024-07-13 21:08:23 +00:00
http2.rs fix(std/http2): release window capacity back to remote stream (#24576) 2024-07-15 17:10:59 +05:30
idna.rs fix(ext/node): Match punycode module behavior to node (#22847) 2024-03-11 15:49:43 -07:00
ipc.rs chore: enable clippy unused_async rule (#22834) 2024-03-11 23:48:00 -04:00
mod.rs feat(ext/node): add BlockList & SocketAddress classes (#24229) 2024-06-18 10:46:13 +00:00
process.rs fix(ext/node): implement process.kill in Rust (#23130) 2024-04-20 18:55:07 +05:30
require.rs refactor: use concrete error types for node resolution (#24470) 2024-07-09 12:15:03 -04:00
util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
v8.rs chore(ext/node): remove old vm ops (#24187) 2024-06-13 09:19:33 +05:30
vm.rs feat: upgrade deno_core (#24364) 2024-07-01 15:48:52 -07:00
vm_internal.rs chore: upgrade dependencies (#24565) 2024-07-15 09:56:51 -07:00
winerror.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker_threads.rs refactor: remove PermissionsContainer in deno_runtime (#24119) 2024-06-06 23:37:53 -04:00