Skip to content
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

Use Unsafe Dokan Operations? #20

Open
dedmen opened this issue Oct 15, 2019 · 0 comments
Open

Use Unsafe Dokan Operations? #20

dedmen opened this issue Oct 15, 2019 · 0 comments

Comments

@dedmen
Copy link
Member

dedmen commented Oct 15, 2019

This is a sub-interface of IDokanOperations that can optionally be implemented to get access to the raw, unmanaged buffers for ReadFile() and WriteFile() for performance optimization. Marshalling the unmanaged buffers to and from byte[] arrays for every call of these APIs incurs an extra copy that can be avoided by reading from or writing directly to the unmanaged buffers.

https://dokan-dev.github.io/dokan-dotnet-doc/html/interface_dokan_net_1_1_i_dokan_operations_unsafe.html

Sounds like this is atleast worth a try. Though our file copy speed is already "good enough"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant