1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-07 06:46:59 -05:00
denoland-deno/ext
Divy Srivastava 1fcace13b9
fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745)
Fixes https://github.com/denoland/deno/issues/20803
Fixes https://github.com/denoland/deno/issues/21723

Performance: copying a 48GiB rust `target` folder (recursive)
| Platform  | `deno` | `node v21.5` | Improvement |
| -------- | ------- | ------- | ------- |
| macOS (APFS) |   3.1secs  |  127.99 secs |  **42x** |
| Windows | 18.3secs | 67.2secs |  **3.8x** |

Copying files with varying sizes:


![image](https://github.com/denoland/deno/assets/34997667/58932652-6f7a-47f5-8504-896dc9ab4ddc)
2024-01-12 13:22:03 +01:00
..
broadcast_channel 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
cache 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
console 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
cron 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
crypto 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
fetch 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
ffi 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
fs fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745) 2024-01-12 13:22:03 +01:00
http 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
io 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
kv 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
napi 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
net 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
node fix(ext/node): add fs.cp, fs.cpSync, promises.cp (#21745) 2024-01-12 13:22:03 +01:00
tls 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
url 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
web 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
webgpu 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
webidl 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
websocket 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00
webstorage 1.39.2 (#21791) 2024-01-04 21:40:03 +01:00