Skip to content

[Feature] Replicate UWP File API to provide improved performance via Win32 APIsΒ #3484

@h82258652

Description

@h82258652

Describe the problem this feature would solve

The storage API is very slow. Take an example, when you call StorageFolder.GetItemsAsync on a folder which contains lots of files, it will takes very long.

Describe the solution

Use FromApp series API in api-ms-win-core-file-fromapp-l1-1-0.dll can improve the performance. But these API are both Win32 API, which means we need to use PInvoke and face the handle (that's terrible).

Describe alternatives you've considered

I hope there are some file and directory API like System.IO, but base on api-ms-win-core-file-fromapp-l1-1-0.dll.

Additional context & Screenshots

https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-file-fromapp-l1-1-0dll
microsoft/microsoft-ui-xaml#1465 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions