mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
078def0ff8
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 |
||
---|---|---|
.. | ||
benchmarks | ||
ops | ||
polyfills | ||
analyze.rs | ||
build.rs | ||
Cargo.toml | ||
clippy.toml | ||
errors.rs | ||
global.rs | ||
lib.rs | ||
package_json.rs | ||
path.rs | ||
polyfill.rs | ||
README.md | ||
resolution.rs |
deno_node
require
and other node related functionality for Deno.