WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Provide a new version of Windows.Storage.FileIO which doesn't go through Runtime Broker when possible

Open jaigak opened this issue 5 years ago • 1 comments

Proposal: Provide a new version of Windows.Storage.FileIO which doesn't go through Runtime Broker when possible

Today any Windows.Storage.FileIO call will go through the Runtime Broker even if the app has direct access to the file (eg: a file inside the AppData folder for the current app) which is not needed and directly accessing will be faster.

Summary

There's the PathIO class for that but when I'm writing a third-party library, I don't really a know whether the calling app has direct access to a specific StorageFile or that it needs a Runtime Broker call. It would be better if FileIO checks whether the app actually has direct access and redirect to PathIO or similar "direct access" APIs if it does for better performance.

Rationale

  • Better file system performance for directly accessible files using FileIO.
  • Developers don't need to worry whether it's a directly accessible file or a brokered StorageFile and can call the same API.

Scope

Capability Priority
This proposal will allow developers to use FileIO on any StorageFile instead of going to PathIO for better performance if the file happens to be accessible directly by the process Must

jaigak avatar Mar 30 '21 13:03 jaigak

Part Of:

  • #8.

  • #219.

mominshaikhdevs avatar Jun 19 '25 02:06 mominshaikhdevs