microsoft / microsoft/WindowsAppSDK

Significant performance overhead in WinRT API calls (ApplicationData, Package.Current)

Open
#6,223 4 comments 2 reactions 1 assignee View on GitHub

@DrusTheAxe is already working on this.

Since Feb 22, 2026.

area-ApplicationData area-PackageManagement
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

Describe the bug

I am seeing unexpected latency when calling standard WinRT APIs within a WPF application (Desktop Bridge/MSIX) using Windows App SDK 1.8.

Environment:
CPU: 12th Gen Intel i9
RAM: 64GB
Framework: Microsoft.WindowsAppRuntime 1.8

Observations:
Using both a profiler and Stopwatch verification, I’ve found that calls to ApplicationData.Current.LocalCacheFolder and ApplicationData.Current.GetPublisherCacheFolder consistently take ~25ms to execute.
Furthermore, these results do not appear to be cached internally; calling them multiple times results in the same 25ms delay per call. Other APIs show similar overhead:
Package.Current.InstalledLocation: ~15ms
ApiInformation.IsTypePresent: ~15ms
On high-end hardware, 15–25ms for a property access is extremely high. Is this expected behavior?

Steps to reproduce the bug

Just call any of those method and measure them with stopwatch

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.