-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
fs: improve cpSync
dest overriding performance
#58160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fs: improve cpSync
dest overriding performance
#58160
Conversation
Your benchmark needs options.force in order to trigger the path you're updating, isn't it? Or do you have force: true as the default value. |
Yes, |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58160 +/- ##
========================================
Coverage 90.18% 90.19%
========================================
Files 631 633 +2
Lines 186693 186880 +187
Branches 36665 36690 +25
========================================
+ Hits 168378 168563 +185
+ Misses 11121 11097 -24
- Partials 7194 7220 +26
🚀 New features to boost your workflow:
|
Sorry could you clarify what you mean? 🙏 This code, as far as my understanding goes, is only effecting |
You are absolutely correct! I misread. Please ignore my comment :) |
Ah ok no worries 😄👍 |
Windows error
|
4a5cad0
to
2828919
Compare
move the logic in `cpSync` that overrides existing dest files from JavaScript to C++ increasing its performance
add missing typing for `cpSyncOverrideFile`
fix cpp formatting
use libuv for preserve_timestamps logic
capture and throw fs errors
use libuv functions directly
Co-authored-by: Yagiz Nizipli <[email protected]>
6956e4b
to
07c6f8e
Compare
move the logic in
cpSync
that overrides existing dest files from JavaScript to C++ increasing its performanceThis is the type of perf improvement that this change makes:
