1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 18:19:08 -05:00
denoland-deno/ext/node/polyfills/_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
..
_fs_access.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_appendFile.ts chore: update deno_lint for CI (#21802) 2024-01-05 15:03:06 +00:00
_fs_chmod.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_chown.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_close.ts feat: deprecate Deno.close() (#22066) 2024-01-24 15:59:55 +01:00
_fs_common.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_constants.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_copy.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_cp.js fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_cp.js (#24320) 2024-06-24 16:17:26 +10:00
_fs_dir.ts fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_dir.ts (#24319) 2024-06-24 06:22:55 +00:00
_fs_dirent.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_exists.ts perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
_fs_fdatasync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fstat.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_fsync.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_ftruncate.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_futimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_lchown.ts fix(node): Implement fs.lchown (and process.getegid) (#24418) 2024-07-05 18:32:51 +00:00
_fs_link.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_lstat.ts fix(ext/node): add throwIfNoEntry option in fs.lstatSync (#24006) 2024-05-28 12:24:54 +02:00
_fs_lutimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_mkdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_mkdtemp.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_open.ts chore: upgrade deno_core (#22124) 2024-01-26 14:04:07 -05:00
_fs_opendir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_read.ts chore: sync up Node.js test files for v20.11.1 (#24066) 2024-06-11 11:41:44 +00:00
_fs_readdir.ts fix: revert accidentally added parentPath on DirEntry (#24438) 2024-07-04 20:58:30 -04:00
_fs_readFile.ts fix(fs): instanceof check for Deno.FsFile (#22121) 2024-01-25 23:51:29 +01:00
_fs_readlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_readv.ts fix(ext/node): Add fs.readv, fs.readvSync (#23166) 2024-04-01 20:42:49 -07:00
_fs_realpath.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rename.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rm.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_rmdir.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_stat.ts fix(ext/node): add default methods to fs.StatsBase (#22750) 2024-03-06 23:01:20 +01:00
_fs_statfs.js feat(node): implement fs.statfs() (#22862) 2024-03-13 10:57:59 +00:00
_fs_symlink.ts fix(ext/node): support junction symlinks on Windows (#22762) 2024-03-09 09:07:29 +05:30
_fs_truncate.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_unlink.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_utimes.ts fix(ext/node): Add fs.lutimes / fs.lutimesSync (#23172) 2024-07-02 19:33:32 -07:00
_fs_watch.ts fix(ext/node): FsWatcher ref and unref (#22987) 2024-03-20 11:19:53 +05:30
_fs_write.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_write.mjs chore: sync up Node.js test files for v20.11.1 (#24066) 2024-06-11 11:41:44 +00:00
_fs_writeFile.ts chore: sync up Node.js test files for v20.11.1 (#24066) 2024-06-11 11:41:44 +00:00
_fs_writev.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
_fs_writev.mjs refactor: rename built-in node modules from ext:deno_node/ to node: (#19680) 2023-07-02 20:19:30 +02:00