-
Notifications
You must be signed in to change notification settings - Fork 23
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
Utilize fs.copyFileSync if available. #41
base: master
Are you sure you want to change the base?
Conversation
@kanongil / @kellyselden / @lifeart et.al got any cycles to give this a try? See if this helps windows perf. |
* Currently would only be utilized on windows * available in node 8.5.x * prefer Copy-On-Write if available * good benchmarks yarnpkg/yarn#3290 Although node-copy-file-sync module exists, it uses more modern JS features. Which this library cannot yet support (without major version bump)
b4342e6
to
a8e229f
Compare
Sure. What would be the best way to test this other than running the test suite? |
I'll also try to put together some benchmarks this week. |
|
I'll have to re-test this on new versions of OSX, but when tested last time it was a wash or worse for smallish files. It may be the case that we perform the operation based on curtain heuristics? |
Although node-copy-file-sync module exists, it uses more modern JS features. Which this library cannot yet support (without major version bump)
[fixes #34]