-
Notifications
You must be signed in to change notification settings - Fork 194
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
Slow on windows #305
Comments
so fyi here's 2 runs before the change (the 2nd being hot)
and here's 2 runs after
Of course you have to put I also figured out the reason. fs.copyFile(Sync) calls into the OS to copy the file where as grunt.file.copy reads bytes and writes bytes. This ends up triggering the windows built in virus scanner With the fix that virus scanning disappears. I guess because the OS knows it's making a copy of a previously scanned file where as it can't know that with grunt.file.copy |
Ah :( |
It takes > 2 minutes for it to copy the files I need it to copy. Compared to
cp -Recurse src dst
which takes 24 seconds. There are ~8k files but still, 29 second vs 130 seconds, something is wrong.As a hack I went into lib/copy.js and changed
to
And it went down to 20 seconds. Maybe if the options are all ok it could do this instead? Note:
fs.copyFile
already copies the timestamp and the modesThe text was updated successfully, but these errors were encountered: