-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
FileSystem.Unix: CopyFile: use copy_file_range on Linux. #64264
Conversation
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsFixes #30156. @adamsitnik ptal.
|
src/libraries/Common/src/Interop/Unix/System.Native/Interop.CopyFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Unix/System.Native/Interop.CopyFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Unix/System.Native/Interop.CopyFile.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/src/Interop/Unix/System.Native/Interop.CopyFile.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmds could you please provide benchmark numbers that justify the change?
The main benefit is that unlike When I copy a file over SMB using the existing .NET
With
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, big thanks for taking care of all of the edge cases! 👍
This already got merged, but FreeBSD starting with 13.0-STABLE also has copy_file_range: https://www.freebsd.org/cgi/man.cgi?query=copy_file_range&sektion=2&format=html |
Fixes #30156.
@adamsitnik ptal.
cc @lpereira @filipnavara