A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/2826 below:

[Bug] Perf degradation of AcquireTokenForClient due to default partitioned cache · Issue #2826 · AzureAD/microsoft-authentication-library-for-dotnet · GitHub

Is your feature request related to a problem? Please describe.
Starting in MSAL 4.30, there's a default in-memory partitioned cache for confidential client applications. For each cache operation, the data is serialized/deserialiazed, which causes a performance hit. Seems to be a bigger issue for apps that have single-tenant partitions with many resources per tenant.

Possible solutions

  1. Partition the internal cache.
  1. Explore having a smaller partition key; currently it's client ID + tenant ID.
  1. When searching through the internal cache, find token by key first then go through filters.

Also add performance tests to compare before and after change. (Testing scenario should include single- and multi-tenant cases with many resources.)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4