News for hackers. Stuff that matters.
Re:Async-std: an async port of the Rust standard library by dmytroi on Friday August 16, 2019 @04:59PM (#20719644)
Yes, IOCP looks like true async I/O most of the time. While in reality it will block if file is cached, in cases if code tries to read something like 100+ MB at a time ReadFile calls can take 200ms+. So most "async I/O" frameworks have to wrap IOCP into a user space thread ...
Re:Async-std: an async port of the Rust standard library by for_xyz on Friday August 16, 2019 @05:17PM (#20719795)
Or disable caching for specified file when calling CreateFile API

https://docs.microsoft.com/en-us/windows/win32/api/fileapi/n...