Closed Berrysoft closed 1 year ago
It seems that some IO futures return Ready
on first call to Future::poll
.
SetFileCompletionNotificationModes
is in OneCoreUAP
, which means it could be used in UWP.
There are some notes:
LSP is deprecated. I think we can just ignore them at now.
Some IO methods may success immediately. However, it will also issue a packet to IOCP. Now in #82 we've allowed success immediately in
push
, so it is possible to handle these methods, and disable the packet issue.We can disable the inner event handle of file object as well. It may improve the performance a little.
Reference
https://learn.microsoft.com/en-US/troubleshoot/windows/win32/asynchronous-disk-io-synchronous
https://devblogs.microsoft.com/oldnewthing/20190719-00/?p=102722
https://devblogs.microsoft.com/oldnewthing/20200221-00/?p=103466
https://github.com/dotnet/corefx/pull/15141