-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
EnhancementA request or suggestion to improve some aspect of the libraryA request or suggestion to improve some aspect of the libraryconfidential-clientFor issues related to confidential client appsFor issues related to confidential client appspublic-clientFor questions/issues related to public client appsFor questions/issues related to public client apps
Description
While doing some perf investigations on Azure Identity I noticed that we spend a ton of time in getAuthorityWithPrefNetworkHost
when getting tokens out of the cache. The perf test is literally calling acquireTokenForManagedIdentity
in a hot loop with no parameters or authority configured.
It ends up being ~70% of the time under AcquireSilentTokenSupplier.execute()
:
Discussion with @Avery-Dunn offline leads to the thought that we can optimize this path some - there's no reason to recompute and reconstruct an authority every call.
This should be investigated in the silent, device code, and auth grant flows.
Metadata
Metadata
Assignees
Labels
EnhancementA request or suggestion to improve some aspect of the libraryA request or suggestion to improve some aspect of the libraryconfidential-clientFor issues related to confidential client appsFor issues related to confidential client appspublic-clientFor questions/issues related to public client appsFor questions/issues related to public client apps
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity