arma3 / DokanPbo

Mount PBO files as drives or folders in the file system
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Use Unsafe Dokan Operations? #20

Open dedmen opened 5 years ago

dedmen commented 5 years ago

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"